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

Virtual server selection / target resource location #59

Closed gwolf-011235 closed 1 week ago

gwolf-011235 commented 3 weeks ago

Virtual Server selection

Add functionality to select the correct virtual server, based on host/port and Host request header.

Server can be set in different stages:

Will add a pointer to a ConfigServer in HTTPRequest.

Target resource location

Right now the location of the target resource is found in the ResponseBuilder. This is too late since config values of the location are needed earlier (ReceiveBody). Should be done after parsing request headers

Will add a pointer to a Location in HTTPRequest.

References