Parses HTTP headers from an input stream, and returns them as an associative array mapping header names to their list of values.
The byte input stream to read from. Note that this stream should be passed as a pointer / reference, values will be consumed from the stream.
Either the headers, or a stream error.
Parses HTTP headers from an input stream, and returns them as an associative array mapping header names to their list of values.