Request

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

__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

string getUri()

Gets the request URI.

Return Value

string The request URI

string getMethod()

Gets the request HTTP method.

Return Value

string The request HTTP method

array getParameters()

Gets the request parameters.

Return Value

array The request parameters

array getFiles()

Gets the request server files.

Return Value

array The request files

array getCookies()

Gets the request cookies.

Return Value

array The request cookies

array getServer()

Gets the request server parameters.

Return Value

array The request server parameters

string getContent()

Gets the request raw body data.

Return Value

string The request raw body data
doc_Symfony
2016-10-28 06:29:16
Comments
Leave a Comment

Please login to continue.