Class Headers
Headers
This class represents a collection of HTTP headers that is used in both the HTTP request and response objects. It also enables header name case-insensitivity when getting or setting a header value.
Each HTTP header can have multiple values. This class stores values into an array for each header name. When you request a header value, you receive an array of values for that header.
- Slim\Collection implements Slim\Interfaces\CollectionInterface
-
Slim\Http\Headers
implements
Slim\Interfaces\Http\HeadersInterface
Methods summary
public static
|
#
createFromEnvironment(
Create new headers collection with data extracted from the application Environment object |
public static
|
#
determineAuthorization(
If HTTP_AUTHORIZATION does not exist tries to get it from getallheaders() when available. |
public
array
|
|
public
|
|
public
string[]
|
|
public
string
|
|
public
|
|
public
boolean
|
|
public
|
|
public
string
|
Methods inherited from Slim\Collection
__construct(),
clear(),
count(),
getIterator(),
keys(),
offsetExists(),
offsetGet(),
offsetSet(),
offsetUnset(),
replace()
Properties summary
protected static
array
|
$special
Special HTTP headers that do not have the "HTTP_" prefix |
#
[
'CONTENT_TYPE' => 1,
'CONTENT_LENGTH' => 1,
'PHP_AUTH_USER' => 1,
'PHP_AUTH_PW' => 1,
'PHP_AUTH_DIGEST' => 1,
'AUTH_TYPE' => 1,
]
|