-
Notifications
You must be signed in to change notification settings - Fork 0
Request Parser #5
Copy link
Copy link
Open
Labels
Description
Request Parser
The Connection Manager will give data from the socket to the request parser, which will store it in a Request instance.
As the data arrives, and the stages of parsing progress, the Request gets built up little by little.
Stages
Each request being parsed needs to go through different stages (as chunks of bytes from recv come through): parsing the request line -> headers -> body -> request is done.
Preparing for Processing
The parser is also responsible for making the request ready to be processed as is.
That means defining which Config_Location is relevant, setting all the fields to be processed, so that the Request Processor can just work on it without doing further analysis.
Reactions are currently unavailable