Photo by JJ Ying on Unsplash

Here we are again with another DevBlog of Pheme. This time we’re going to be tackling the problem of request parsing. Let’s get started.

Format of an HTTP request

To parse an HTTP request we need to study the format of an HTTP request. According to Wikipedia, a request message consists of the following:

Let’s tackle each of them individually.

Request Line

Request line consists of three components

Furthermore, when I dig a little deeper, I found this…


Photo by Ian Battaglia on Unsplash

I was playing around with flask and I though to myself — how hard would it be to write a toy web framework on my own. And here we are. We’re going writing the toy framework using Python. Let’s get started.

Initializing the Project

First I initialized the project as every other module. I also created a git repository to track and review changes as we move on with the project.

As I’m going to be modelling this framework around flask, we need to figure out how flask works. …


Photo by Pietro Jeng on Unsplash

This is the first in a series of Devblogs, as I like to call it, where I will try to develop a fully-fledged machine learning library in python. Without any further ado, let’s get started.

Initializing the code

First, I initialized an empty git repository in my folder. I organized my files like a traditional module with __init__.py and stuff. Next up we’re gonna create a regression folder where the regression methods like Linear Regression, Logistic Regression, and even Polynomial Regression are gonna reside.

The Linear Regression Class

I’m thinking of making this whole library object-oriented as is the case with most libraries. It makes it easier…

Uber Dev

I am a Developer. I love to create projects in the field of Computer Science and Software Development.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store