$headers
$headers : array
Trait implementing functionality common to requests and responses.
$stream : \Psr\Http\Message\StreamInterface
withBody(\Psr\Http\Message\StreamInterface $body)
\Psr\Http\Message\StreamInterface | $body |
trimHeaderValues(array<mixed,string> $values) : array<mixed,string>
Trims whitespace from the header values.
Spaces and tabs ought to be excluded by parsers when extracting the field value from a header field.
header-field = field-name ":" OWS field-value OWS OWS = *( SP / HTAB )
array<mixed,string> | $values | Header values |
Trimmed header values