Метод | Описание | |
---|---|---|
getBest ( string $header, array $priorities, $strict = false ) : negotiation\AcceptHeader | null |
Метод | Описание | |
---|---|---|
acceptFactory ( string $header ) : negotiation\AcceptHeader | ||
match ( negotiation\AcceptHeader $header, negotiation\AcceptHeader $priority, integer $index ) : negotiation\Match | null |
Метод | Описание | |
---|---|---|
findMatches ( array $headerParts, array $priorities ) : negotiation\Match[] | ||
parseHeader ( string $header ) : negotiation\AcceptHeader[] |
abstract protected acceptFactory ( string $header ) : negotiation\AcceptHeader | ||
$header | string | accept header part or server priority |
Результат | negotiation\AcceptHeader | Parsed header object |