alcjzk / Webserv

0 stars 0 forks source link

Overall big refactor #3

Closed alcjzk closed 8 months ago

alcjzk commented 8 months ago

Summary

This PR implements the following major classes:

Along with the following major derived classes:

As well as initial implementations for the following data classes and exceptions:

As well as a logger, some tests and all that nice stuff.


Server behavior

Currently the server will launch binding to the port 8000, and start accepting requests. The connection will read a request line (delimited by a newline), validate & parse it and then keep accepting header-lines until the input reaches an empty line (end of headers). Upon reaching end-of-headers, the server will send a simple default response.

A connection will remain open until:


What can be done next:

alcjzk commented 8 months ago

I got header parsing done a bit faster than i thought so I'm dumping it here as well