It handles requests and responses at the same time.
The parser is designed to be used in HTTP applications.
Here are some key features of "HTTP Parser":
General Features:
· Upgrade support
· Defends against buffer overflow attacks.
· No dependencies
· Handles persistent streams (keep-alive).
· Decodes chunked encoding.
Extracted information from HTTP messages:
· HTTP version
· Request path, query string, fragment
· Message body
· Header fields and values
· Content-Length
· Request method
· Response status code
· Transfer-Encoding
Limitations:
· It does not make any syscalls nor allocations, it does not buffer data, it can be interrupted at anytime.