Http\Request::getDI

public getDI () Returns the internal dependency injector

Http\Request::getContentType

public getContentType () Gets content type which request has been made

Http\Request::getDigestAuth

public getDigestAuth () Gets auth info accepted by the browser/client from $_SERVER[‘PHP_AUTH_DIGEST’]

Http\Request::getHeader

final public getHeader (mixed $header) Gets HTTP header from request data

Http\Request::getClientCharsets

public getClientCharsets () Gets a charsets array and their quality accepted by the browser/client from _SERVER[“HTTP_ACCEPT_CHARSET”]

Http\Request::getClientAddress

public getClientAddress ([mixed $trustForwardedHeader]) Gets most possible client IPv4 Address. This method search in _SERVER[‘REMOTE_ADDR’] and optionally in _SERVER[‘HTTP_X_FORWARDED_FOR’]

Http\Request::get

public get ([mixed $name], [mixed $filters], [mixed $defaultValue], [mixed $notAllowEmpty], [mixed $noRecursive]) Gets a variable from the $_REQUEST superglobal applying filters if needed. If no parameters are given the $_REQUEST superglobal is returned //Returns value from $_REQUEST["user_email"] without sanitizing $userEmail = $request->get("user_email"); //Returns value from $_REQUEST["user_email"] with sanitizing $userEmail = $request->get("user_email", "email");

Http\Request::getBestCharset

public getBestCharset () Gets best charset accepted by the browser/client from _SERVER[“HTTP_ACCEPT_CHARSET”]

Http\Request::getBasicAuth

public getBasicAuth () Gets auth info accepted by the browser/client from $_SERVER[‘PHP_AUTH_USER’]

Http\Request::getBestAccept

public getBestAccept () Gets best mime/type accepted by the browser/client from _SERVER[“HTTP_ACCEPT”]