Negotiate.php
system/HTTP/Negotiate.php
1 class
14 methods
class Negotiate
Class Negotiate Provides methods to negotiate with the HTTP headers to determine the best type match between what the application supports and what the requesting server wants.
__construct
(?RequestInterface $request = null)
setRequest
(RequestInterface $request)
media
(array $supported, bool $strictMatch = false)
charset
(array $supported)
encoding
(array $supported = [])
language
(array $supported)
getBestMatch
(array $supported, ?string $header = null, bool $enforceTypes = false, bool $strictMatch = false, bool $matchLocales = false, )
getBestLocaleMatch
(array $supportedLocales, ?string $header)
parseHeader
(string $header)
int
($a, $b)
string
(array $acceptable, string $supported, bool $enforceTypes = false, $matchLocales = false)
matchParameters
(array $acceptable, array $supported)
matchTypes
(array $acceptable, array $supported)
matchLocales
(array $acceptable, array $supported)