\GuzzleHttp\Psr7Header

Summary

Methods
Properties
Constants
parse()
normalize()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

parse()

parse(string|array  $header) : array

Parse an array of header values containing ";" separated data into an array of associative arrays representing the header key value pair data of the header. When a parameter does not contain a value, but just contains a key, this function will inject a key with a '' string value.

Parameters

string|array $header

Header to parse into components.

Returns

array —

Returns the parsed header values.

normalize()

normalize(string|array  $header) : array

Converts an array of header values that may contain comma separated headers into an array of headers with no comma separated values.

Parameters

string|array $header

Header to normalize.

Returns

array —

Returns the normalized header field values.