u413-284-si / webserv

This project is about setting up a http web server, providing a static website.
MIT License
0 stars 0 forks source link

42 check for completeness of a http request and parse accordingly #44

Closed u413-284-si closed 3 weeks ago

u413-284-si commented 1 month ago

Overview

  1. Check for complete HTTP request in RequestParser class
  2. Introduce enum ParsingStatus
  3. Check against method if body detected
  4. Check of request size against max body size (determined by ConfigFile) -> behaviour needs to be finished
  5. Adapt test cases

re 1.

re 2.

re 3.

re 4.

re 5.

closes #42

u413-284-si commented 3 weeks ago

Rework RequestParser

Rework Server

Furthermore fix unit tests to work with new request parser methods.

u413-284-si commented 3 weeks ago

Had to move timestamp to function end again to account for the other cases when readFromSocket returns. Added timestamp to error cases just before the return statement.