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.
Retrieve one or all headers of the current HTTP request.
Get the HTTP response code to send.
Get one or all HTTP response headers to be sent.
Retrieve a list of all known HTTP response status.
string representation of specified HTTP response code.
Generic negotiator. For specific client negotiation see http\Env::negotiateContentType() and related methods.
Negotiate the client's preferred character set.
Negotiate the client's preferred MIME content type.
Negotiate the client's preferred encoding.
Negotiate the client's preferred language.
Set the HTTP response code to send.
Set a response header, either replacing a prior set header, or appending the new header value, depending on $replace.
The http\Env\Request class' instances represent the server's current HTTP request.
The http\Env\Response class' instances represent the server's current HTTP response.
URL class using the HTTP environment by default.