CR
CR = "\r"
Provides base functionality for request and response de/serialization strategies, including functionality for retrieving a line at a time from the message, splitting headers from the body, and serializing headers.
getLine(\Psr\Http\Message\StreamInterface $stream) : string
Retrieve a single line from the stream.
Retrieves a line from the stream; a line is defined as a sequence of characters ending in a CRLF sequence.
\Psr\Http\Message\StreamInterface | $stream |
if the sequence contains a CR or LF in isolation, or ends in a CR.
splitStream(\Psr\Http\Message\StreamInterface $stream) : array
Split the stream into headers and body content.
Returns an array containing two elements
\Psr\Http\Message\StreamInterface | $stream |
For invalid headers.
Loading…