The http\Env class provides static methods to manipulate and inspect the server's current request's HTTP environment.
Retrieve the current HTTP request's body.
static http\Message\Body http\Env::getRequestBody([string $body_class_name])
Retrieve one or all headers of the current HTTP request.
static mixed http\Env::getRequestHeader([string $header_name])
Get the HTTP response code to send.
static int http\Env::getResponseCode()
Get one or all HTTP response headers to be sent.
static mixed http\Env::getResponseHeader([string $header_name])
Retrieve a list of all known HTTP response status.
Retrieve the string representation of specified HTTP response code.
static string http\Env::getResponseStatusForCode(int $code)
Generic negotiator. For specific client negotiation see http\Env::negotiateContentType() and related methods.
static string http\Env::negotiate(string $params, array $supported[, string $prim_typ_sep[, array &$result]])
Negotiate the client's preferred character set.
static string http\Env::negotiateCharset(array $supported[, array &$result])
Negotiate the client's preferred MIME content type.
static string http\Env::negotiateContentType(array $supported[, array &$result])
Negotiate the client's preferred encoding.
static string http\Env::negotiateEncoding(array $supported[, array &$result])
Negotiate the client's preferred language.
static string http\Env::negotiateLanguage(array $supported[, array &$result])
Set the HTTP response code to send.
static bool http\Env::setResponseCode(int $code)
Set a response header, either replacing a prior set header, or appending the new header value, depending on $replace.
static bool http\Env::setResponseHeader(string $header_name[, mixed $header_value = NULL[, int $response_code = 0[, bool $replace = true]]])
The http\Env\Request class' instances represent the server's current HTTP request.
class http\Env\Request extends http\Message
The http\Env\Response class' instances represent the server's current HTTP response.
class http\Env\Response extends http\Message
URL class using the HTTP environment by default.
class http\Env\Url extends http\Url