Skip to main content

Module header

Module header 

Source
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.
StatusLine
A status line, such as LSL/110 200 OK.

Enums§

Error
A protocol error.
StatusAction
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.