Expand description
The header block parser, and the status line.
liblsl parses request headers and answer headers with the same code
(src/tcp_server.cpp:602-632, src/data_receiver.cpp:215-258). The rules
are in SPEC.md 4.3.
Structs§
- Headers
- A parsed header block.
- Status
Line - A status line, such as
LSL/110 200 OK.
Enums§
- Error
- A protocol error.
- Status
Action - What a client does with a status code. SPEC.md 4.5.
Constants§
- LINE_
LIMIT - The largest line that liblsl reads.
src/tcp_server.cpp:601.
Functions§
- parse_
block - Read a header block. The block ends at a line that starts with a carriage return, or at an empty line.
- split_
line - Split a line into a header name and a value.