Interface Guzzle\Http\Message\Header\HeaderInterface

ExtendsCountable, Guzzle\Common\ToArrayInterface, IteratorAggregate
Implemented byGuzzle\Http\Message\Header, Guzzle\Http\Message\Header\CacheControl, Guzzle\Http\Message\Header\Link

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__toString() Convert the header to a string Guzzle\Http\Message\Header\HeaderInterface
add() Add a value to the list of header values Guzzle\Http\Message\Header\HeaderInterface
getGlue() Get the glue used to implode multiple values into a string Guzzle\Http\Message\Header\HeaderInterface
getName() Get the name of the header Guzzle\Http\Message\Header\HeaderInterface
hasValue() Check if the collection of headers has a particular value Guzzle\Http\Message\Header\HeaderInterface
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. Guzzle\Http\Message\Header\HeaderInterface
removeValue() Remove a specific value from the header Guzzle\Http\Message\Header\HeaderInterface
setGlue() Change the glue used to implode the values Guzzle\Http\Message\Header\HeaderInterface
setName() Change the name of the header Guzzle\Http\Message\Header\HeaderInterface
toArray() Get the array representation of an object Guzzle\Common\ToArrayInterface

Method Details

__toString() public abstract method

Convert the header to a string

public abstract string __toString ( )
add() public abstract method

Add a value to the list of header values

public abstract self add ( $value )
$value string

Value to add to the header

getGlue() public abstract method

Get the glue used to implode multiple values into a string

public abstract string getGlue ( )
getName() public abstract method

Get the name of the header

public abstract string getName ( )
hasValue() public abstract method

Check if the collection of headers has a particular value

public abstract bool hasValue ( $searchValue )
$searchValue string

Value to search for

parseParams() public abstract method

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.

public abstract array parseParams ( )
removeValue() public abstract method

Remove a specific value from the header

public abstract self removeValue ( $searchValue )
$searchValue string

Value to remove

setGlue() public abstract method

Change the glue used to implode the values

public abstract self setGlue ( $glue )
$glue string

Glue used to implode multiple values

setName() public abstract method

Change the name of the header

public abstract self setName ( $name )
$name string

Name to change to