readHttpRequest

Parses an HTTP/1.1 request from a byte input stream.

readHttpRequest
(
S
)
(,
in ClientAddress addr
)
if (
isByteInputStream!S
)

Parameters

inputStream S

The byte input stream to read from.

addr ClientAddress

The client address, used in constructed the http request struct.

Return Value

Either the request which was parsed, or a stream error.