spaceone / httoop

HTTOOP - a fully object oriented HTTP protocol library written in python
MIT License
18 stars 5 forks source link

StateMachine should parse headers immediately #6

Closed spaceone closed 5 years ago

spaceone commented 5 years ago

Currently the state machine waits until receiving \r\n\r\n which marks the end of headers. This is not necessary. It could parse each header until it sees \r\n + any byte except a space (\r\n) which would indicate a continuation line.

spaceone commented 5 years ago

Has been implemented in https://github.com/spaceone/httoop/commit/6fd5459cf64c16de3e51bc37c1e0c5f2ae0fd17d.