Alias for the result of the readHttpRequest function which parses HTTP requests.
Base class for HTTP/1.1 transport, where different subclasses can define how the actual socket communication works (threadpool / epoll/ etc).
Gets a ClientAddress value from a socket's address information.
The main logic for handling an incoming request from a client. It involves reading bytes from the client, parsing them as an HTTP request, passing that to the HTTP Transport's request handler, and then writing the response back to the client.
Parses HTTP headers from an input stream, and returns them as an associative array mapping header names to their list of values.
Parses an HTTP/1.1 request from a byte input stream.
A generic test to ensure that any Http1Transport implementation behaves properly to start & stop, and process requests when running.