Closed spaceone closed 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.
\r\n\r\n
\r\n
Has been implemented in https://github.com/spaceone/httoop/commit/6fd5459cf64c16de3e51bc37c1e0c5f2ae0fd17d.
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.