Request

class Request

Methods

__construct(string $uri, string $method, array $parameters = array(), array $files = array(), array $cookies = array(), array $server = array(), string $content = null)
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)

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

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/BrowserKit/Request.html