Closed andreaulicna closed 3 months ago
Note renaming:
_dataToParse
to _receivedData
_findValidHeaderEnd()
to_separateValidHeader()
(and added hasValidHeaderEnd()
checker function)_receivedData
(buffer) to process everything (unless it's a request with incomplete header)findValidHeaderEnd()
function as the separation of the header and the body that we have in the buffer is done by a void separateValidHeader()
function that is called when the if evaluates to truerequestComplete
== true), we need to reset the values in the request object to the initial values before processing a new requestresetRequestObject()
does that when everything goes okay (not when an exception is thrown, though - see NEXT)request
object saved in the Client (or at least the readingBodyInProgress
and requestComplete
flags) whenever an exception is thrown from HttpParser
requestComplete
was set to true)readRequestBody()
for one of the exceptions - it was getting thrown when the mainClient was run to connect to the server
@andreaulicna this is basically done now, right?
Yesss, everything left (or I thought that was left 😅) was fixed when we spoke about it on campus.
while loop in ServerMaster