Zend\Http\Header\AcceptEncoding
Accept Encoding Header
Synopsis
class AcceptEncoding
extends AbstractAccept
{
- // members
- protected string $regexAddType;
- // Inherited members from AbstractAccept
- protected array $fieldValueParts;
- protected $regexAddType;
- protected bool $sorted;
- // methods
- public string getFieldName()
- public string toString()
- public Accept addEncoding()
- public bool hasEncoding()
- protected EncodingFieldValuePart parseFieldValuePart()
- // Inherited methods from AbstractAccept
- public void parseHeaderLine()
- public static Accept fromString()
- public array getFieldValuePartsFromHeaderLine()
- protected stdClass parseFieldValuePart()
- protected array getParametersFromFieldValuePart()
- public string getFieldValue()
- protected string assembleAcceptParam()
- protected Accept addType()
- protected bool hasType()
- public AcceptFieldValuePart|bool match()
- protected bool|array matchAcceptParams()
- protected number addFieldValuePartToQueue()
- protected number sortFieldValueParts()
- public array getPrioritized()
Hierarchy
Extends
Tasks
Line | Task |
---|---|
218+ | someone should review this thoroughly |
Members
protected
- $fieldValueParts — array
- $regexAddType
- $regexAddType
- $sorted
—
Zend\Http\Header\bool
Determines if since last mutation the stack was sorted
Methods
protected
- parseFieldValuePart() — Parse the keys contained in the header line
public
- addEncoding() — Add an encoding, with the given priority
- getFieldName() — Get field name
- hasEncoding() — Does the header have the requested encoding?
- toString() — Cast to string
Inherited from Zend\Http\Header\AbstractAccept
protected
- addFieldValuePartToQueue() — Add a key/value combination to the internal queue
- addType() — Add a type, with the given priority
- assembleAcceptParam() — Assemble and escape the field value parameters based on RFC 2616 section 2.1
- getParametersFromFieldValuePart() — Parse the keys contained in the header line
- hasType() — Does the header have the requested type?
- matchAcceptParams() — Return a match where all parameters in argument #1 match those in argument #2
- parseFieldValuePart() — Parse the accept params belonging to a media range
- sortFieldValueParts() — Sort the internal Field Value Parts
public
- fromString() — Factory method: parse Accept header string
- getFieldValue() — Get field value
- getFieldValuePartsFromHeaderLine() — Parse the Field Value Parts represented by a header line
- getPrioritized()
- match() — Match a media string against this header
- parseHeaderLine() — Parse a full header line or just the field value part.