1400. Class

1400.1. Zend\Http\PhpEnvironment\Request

HTTP Request for current PHP environment

1400.1.1. Methods

1400.1.1.1. __construct

__construct()

Construct Instantiates request.

1400.1.1.2. getContent

getContent()

Get raw request body

Return type:string

1400.1.1.3. setCookies

setCookies()

Set cookies

Instantiate and set cookies.

Parameters:$cookie
Return type:Request

1400.1.1.4. setRequestUri

setRequestUri()

Set the request URI.

Parameters:string
Return type:self

1400.1.1.5. getRequestUri

getRequestUri()

Get the request URI.

Return type:string

1400.1.1.6. setBaseUrl

setBaseUrl()

Set the base URL.

Parameters:string
Return type:self

1400.1.1.7. getBaseUrl

getBaseUrl()

Get the base URL.

Return type:string

1400.1.1.8. setBasePath

setBasePath()

Set the base path.

Parameters:string
Return type:self

1400.1.1.9. getBasePath

getBasePath()

Get the base path.

Return type:string

1400.1.1.10. setServer

setServer()

Provide an alternate Parameter Container implementation for server parameters in this object, (this is NOT the primary API for value setting, for that see getServer())

Parameters:ParametersInterface
Return type:Request

1400.1.1.11. getServer

getServer()

Return the parameter container responsible for server parameters or a single parameter value.

Parameters:
  • string|null – Parameter name to retrieve, or null to get the whole container.
  • mixed|null – Default value to use when the parameter is missing.

:see :

Return type:ZendStdlibParametersInterface|mixed

1400.1.1.12. setEnv

setEnv()

Provide an alternate Parameter Container implementation for env parameters in this object, (this is NOT the primary API for value setting, for that see env())

Parameters:ParametersInterface
Return type:Request

1400.1.1.13. getEnv

getEnv()

Return the parameter container responsible for env parameters or a single parameter value.

Parameters:
  • string|null – Parameter name to retrieve, or null to get the whole container.
  • mixed|null – Default value to use when the parameter is missing. * @return ZendStdlibParametersInterface
Return type:

ZendStdlibParametersInterface|mixed

1400.1.1.14. mapPhpFiles

mapPhpFiles()

Convert PHP superglobal $_FILES into more sane parameter=value structure This handles form file input with brackets (name=files[])

Return type:array

1400.1.1.15. mapPhpFileParam

mapPhpFileParam()

@param array $array

Parameters:
  • string
  • int|string
  • string|array

1400.1.1.16. detectRequestUri

detectRequestUri()

Detect the base URI for the request

Looks at a variety of criteria in order to attempt to autodetect a base URI, including rewrite URIs, proxy URIs, etc.

Return type:string

1400.1.1.17. detectBaseUrl

detectBaseUrl()

Auto-detect the base path from the request environment

Uses a variety of criteria in order to detect the base URL of the request (i.e., anything additional to the document root).

The base URL includes the schema, host, and port, in addition to the path.

Return type:string

1400.1.1.18. detectBasePath

detectBasePath()

Autodetect the base path of the request

Uses several criteria to determine the base path of the request.

Return type:string