HTTP client task. It sends one HTTP GET request and receives and parses the response, expecting response_payload as the response payload.
Stores and parses the response data which readConsume outputs.
Task-based HTTP connection handler supporting only HTTP GET with response_payload as the response payload.
glibc function. Looks for b_ptr[0 .. b_len] in a_ptr[0 .. a_len] and returns - a pointer to the first occurrence if found or - null if not found or - a_ptr if b_len == 0.
The payload of the HTTP response.
The server address, initialised in main and used by both the server and the client.
Test-suite for the task based HTTP server.
This test uses a TCP socket connection to localhost:8080.
FLAKY: the unittests in this module are a bit flaky, as they rely on making various system calls (socket, connect, read/write, epoll API functions, etc) which could, under certain environmental conditions, fail.