Méthode | Description | |
---|---|---|
fromGlobals ( array $server = null, array $query = null, array $body = null, array $cookies = null, array $files = null ) : |
Create a request from the supplied superglobal values. | |
get ( string $key, array $values, mixed $default = null ) : mixed | Access a value in an array, returning a default value if not found | |
getHeader ( string $header, array $headers, mixed $default = null ) : string | Search for a header value. | |
marshalHeaders ( array $server ) : array | Marshal headers from $_SERVER | |
marshalHostAndPort ( stdClass $accumulator, array $server, Psr\Http\Message\MessageInterface $request ) : array | Marshal the host and port from HTTP headers and/or the PHP environment | |
marshalHostAndPortFromHeaders ( stdClass $accumulator, array $server, array $headers ) : array | Marshal the host and port from HTTP headers and/or the PHP environment | |
marshalRequestUri ( array $server ) : string | Detect the base URI for the request | |
marshalUri ( array $server, Psr\Http\Message\MessageInterface $request ) : |
Marshal the URI from the $_SERVER array and headers | |
marshalUriFromServer ( array $server, array $headers ) : |
Marshal the URI from the $_SERVER array and headers | |
normalizeFiles ( array $files ) : array | Normalize uploaded files | |
normalizeServer ( array $server ) : array | Marshal the $_SERVER array | |
stripQueryString ( mixed $path ) : void | Strip the query string from a path |
Méthode | Description | |
---|---|---|
createUploadedFileFromSpec ( array $value ) : array | Psr\Http\Message\UploadedFileInterface | Create and return an UploadedFile instance from a $_FILES specification. | |
marshalHostAndPortFromHeader ( stdClass $accumulator, string | array $host ) : void | Marshal the host and port from the request header | |
marshalIpv6HostAndPort ( stdClass $accumulator, array $server ) | Marshal host/port from misinterpreted IPv6 address | |
normalizeNestedFileSpec ( array $files ) : Psr\Http\Message\UploadedFileInterface[] | Normalize an array of file specifications. |
public static fromGlobals ( array $server = null, array $query = null, array $body = null, array $cookies = null, array $files = null ) : |
||
$server | array | $_SERVER superglobal |
$query | array | $_GET superglobal |
$body | array | $_POST superglobal |
$cookies | array | $_COOKIE superglobal |
$files | array | $_FILES superglobal |
Résultat |
public static marshalHeaders ( array $server ) : array | ||
$server | array | |
Résultat | array |
public static marshalHostAndPort ( stdClass $accumulator, array $server, Psr\Http\Message\MessageInterface $request ) : array | ||
$accumulator | stdClass | |
$server | array | |
$request | Psr\Http\Message\MessageInterface | |
Résultat | array | Array with two members, host and port, at indices 0 and 1, respectively |
public static marshalRequestUri ( array $server ) : string | ||
$server | array | |
Résultat | string |
public static marshalUri ( array $server, Psr\Http\Message\MessageInterface $request ) : |
||
$server | array | |
$request | Psr\Http\Message\MessageInterface | |
Résultat |
public static marshalUriFromServer ( array $server, array $headers ) : |
||
$server | array | |
$headers | array | |
Résultat |
public static normalizeFiles ( array $files ) : array | ||
$files | array | |
Résultat | array |
public static normalizeServer ( array $server ) : array | ||
$server | array | |
Résultat | array |
public static stripQueryString ( mixed $path ) : void | ||
$path | mixed | |
Résultat | void |