class Request

Request object.

Methods

__construct(string $uri, string $method, array $parameters = array(), array $files = array(), array $cookies = array(), array $server = array(), string $content = null)

Constructor.

string
getUri()

Gets the request URI.

string
getMethod()

Gets the request HTTP method.

array
getParameters()

Gets the request parameters.

array
getFiles()

Gets the request server files.

array
getCookies()

Gets the request cookies.

array
getServer()

Gets the request server parameters.

string
getContent()

Gets the request raw body data.

Details

at line line 40
__construct(string $uri, string $method, array $parameters = array(), array $files = array(), array $cookies = array(), array $server = array(), string $content = null)

Constructor.

Parameters

string $uri The request URI
string $method The HTTP method request
array $parameters The request parameters
array $files An array of uploaded files
array $cookies An array of cookies
array $server An array of server parameters
string $content The raw body data

at line line 56
string getUri()

Gets the request URI.

Return Value

string The request URI

at line line 66
string getMethod()

Gets the request HTTP method.

Return Value

string The request HTTP method

at line line 76
array getParameters()

Gets the request parameters.

Return Value

array The request parameters

at line line 86
array getFiles()

Gets the request server files.

Return Value

array The request files

at line line 96
array getCookies()

Gets the request cookies.

Return Value

array The request cookies

at line line 106
array getServer()

Gets the request server parameters.

Return Value

array The request server parameters

at line line 116
string getContent()

Gets the request raw body data.

Return Value

string The request raw body data.