Add functionality to select the correct virtual server, based on host/port and Host request header.
Server can be set in different stages:
Idle: right after connection pick first fitting Host/port combination based on serverSock of connection
ReceiveHeader: after request header has been parsed check if Host field gives new information
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
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