- Parsing the start line.
- Parsing the header fields.
- Parsing the body/payload if existing.
While parsing it will catch HTTP errors with the checkers:
checkStartLine()
checkValueSize(key, value)
for URI length checkcheckHeaderFields()
If an error is thrown it is catched and saved in a variable of the response instance _response._requestParsingError
. It will stop parsing and set the variable isRead
to true in order to be able to meet the condition in ServerManager
to get the response._
URLDecode()
decodes URI from path.doesKeyExist()
checks for given key in the map, if not found throws the error passed as parameter.checkBoundary()
extracts boundary from content-type and looks for it in the payload.