Value for _reader will retain any reader (readbuffer) state that needs to persist beyond a single request. This fixes issues when a single recv call reads more than one request into the buffer.
All of these values have also been so far passed separately into basically all tasks, so the refactor to use this as replacement is quite large.
Other changes
Removed legacy FileResponse
Various helper utilities into Reader & Buffer
Fixed #57
Not in this PR
Some todo items will be handled outside this PR, due to the large refactor.
Main changes
Content Too Large
Connection
class to carry information throughout lifetime of a client connection (keep-alive is now contained here).Connection
The class' main purpose is to carry any state that needs to live for the full duration of the connection. This includes the following:
Value for
_reader
will retain any reader (readbuffer) state that needs to persist beyond a single request. This fixes issues when a singlerecv
call reads more than one request into the buffer.All of these values have also been so far passed separately into basically all tasks, so the refactor to use this as replacement is quite large.
Other changes
FileResponse
Reader
&Buffer
Not in this PR