Methods summary
public
|
#
__construct( string $header, array|string $values = array(), string $glue = ',' )
Parameters
- $header
- Name of the header
- $values
- Values of the header as an array or a scalar
- $glue
- Glue used to combine multiple values into a string
|
public
string
|
#
__toString( )
Convert the header to a string
Convert the header to a string
Returns
string
Implementation of
|
public
Guzzle\Http\Message\Header
|
#
add( string $value )
Add a value to the list of header values
Add a value to the list of header values
Parameters
- $value
- Value to add to the header
Returns
Implementation of
|
public
string
|
#
getName( )
Get the name of the header
Get the name of the header
Returns
string
Implementation of
|
public
Guzzle\Http\Message\Header
|
#
setName( string $name )
Change the name of the header
Change the name of the header
Parameters
Returns
Implementation of
|
public
Guzzle\Http\Message\Header
|
#
setGlue( string $glue )
Change the glue used to implode the values
Change the glue used to implode the values
Parameters
- $glue
- Glue used to implode multiple values
Returns
Implementation of
|
public
string
|
#
getGlue( )
Get the glue used to implode multiple values into a string
Get the glue used to implode multiple values into a string
Returns
string
Implementation of
|
public
Guzzle\Http\Message\Header
|
#
normalize( )
Normalize the header to be a single header with an array of values.
Normalize the header to be a single header with an array of values.
If any values of the header contains the glue string value (e.g. ","), then the value will be exploded into
multiple entries in the header.
Returns
|
public
boolean
|
#
hasValue( string $searchValue )
Check if the collection of headers has a particular value
Check if the collection of headers has a particular value
Parameters
- $searchValue
- Value to search for
Returns
boolean
Implementation of
|
public
Guzzle\Http\Message\Header
|
#
removeValue( string $searchValue )
Remove a specific value from the header
Remove a specific value from the header
Parameters
- $searchValue
- Value to remove
Returns
Implementation of
|
public
array
|
#
toArray( )
Get the array representation of an object
Get the array representation of an object
Returns
array
Implementation of
|
public
|
|
public
|
|
public
array
|
#
parseParams( )
Parse a header 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.
Parse a header 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.
Returns
array
Implementation of
|
public
|
#
raw( )
Deprecated
Codecoverageignore
|