\HTTPRequestParams

Request params fetcher.

Summary

Methods
Properties
Constants
__construct()
get_param()
No public properties found
No constants found
get_session_id_from_headers()
get_http_request_headers()
get_session_id()
$Router
N/A
No private methods found
No private properties found
N/A

Properties

$Router

$Router : \Router

Router of the transport.

Type

\Router

Methods

__construct()

__construct(\Router  $Router) 

Constructor.

Parameters

\Router $Router
  • Router object.

get_param()

get_param(string  $Param, mixed  $Default = false) : string

Method returns request parameter.

Parameters

string $Param
  • parameter name.
mixed $Default
  • default value.

Returns

string —

Parameter value.

get_session_id_from_headers()

get_session_id_from_headers(array  $Headers) 

Fetching auth token from headers.

return array Session id.

Parameters

array $Headers

get_http_request_headers()

get_http_request_headers() : \array[string]

Method returns list of the request's headers.

Returns

\array[string] —

Array of headers.

get_session_id()

get_session_id() : string

Method returns session id from HTTP header.

Returns

string —

Session id.