DinaGala / 42_webserv

This project is about writing our own HTTP server.
2 stars 2 forks source link

Request Exceptions #53

Closed nuferron closed 1 month ago

nuferron commented 1 month ago

Whenever there's a request error, we throw an exception and leave (we mark the response as parsed). However, in Response, we still need some stuff like the headers (-> Accept is very important <-). We can't call requestValidations() in the catch because it could throw an exception, but we need to keep checking the request (at least the headers)