Свойство | Тип | Описание | |
---|---|---|---|
$formDataMediaTypes | |||
$jsonDataMediaTypes |
Метод | Описание | |
---|---|---|
__construct ( Scalr\Api\Rest\Environment $appEnv ) | Constructor | |
delete ( string $key = null, string $default = null ) : mixed | Gets DELETE data | |
get ( string $key = null, string $default = null ) : mixed | Gets GET data | |
getBody ( ) : string | Gets request raw body | |
getContentLength ( ) : integer | Gets Content length | |
getContentType ( ) : string | null | Gets Content Type | |
getHost ( ) : string | Gets server host | |
getIp ( ) : string | null | Gets IP address | |
getJsonBody ( ) : mixed | Gets request's json decoded body | |
getMediaType ( ) : string | null | Gets media type | |
getMediaTypeParams ( ) : array | Gets media type parameters | |
getMethod ( ) : string | Gets HTTP Request method | |
getOrigin ( ) : string | null | Gets HTTP origin | |
getPath ( ) : string | Gets path | |
getPathInfo ( ) : string | Gets path info | |
getPort ( ) : number | Gets server port | |
getReferer ( ) : string | null | Gets HTTP Referer | |
getScheme ( ) : string | Gets scheme | |
getScriptName ( ) : string | Gets script name | |
getUrl ( ) : string | Gets URL | |
getUserAgent ( ) : string | null | Gets User Agent | |
hasMethod ( string $method ) : boolean | Checks whether specified method is accepted for the request | |
headers ( string $key = null, string $default = null ) : string | Gets header | |
isFormData ( ) : boolean | Whether content type is application/x-www-form-urlencoded | |
isJsonData ( ) : boolean | Whether content type is application/json | |
patch ( string $key = null, string $default = null ) : mixed | Gets PATCH data | |
post ( string $key = null, string $default = null ) : mixed | Gets POST data | |
put ( string $key = null, string $default = null ) : mixed | Gets PUT data |
public __construct ( Scalr\Api\Rest\Environment $appEnv ) | ||
$appEnv | Scalr\Api\Rest\Environment | Application environment variables |
public getContentLength ( ) : integer | ||
Результат | integer | Returns content length |
public getContentType ( ) : string | null | ||
Результат | string | null |
public getJsonBody ( ) : mixed | ||
Результат | mixed | Returns json decoded body |
public getMediaType ( ) : string | null | ||
Результат | string | null | Returns media type |
public getMediaTypeParams ( ) : array | ||
Результат | array | Returns media type parameters |
public getPathInfo ( ) : string | ||
Результат | string | Returns path info |
public getReferer ( ) : string | null | ||
Результат | string | null | Gets HTTP Referer |
public getScriptName ( ) : string | ||
Результат | string | Returns script name |
public getUserAgent ( ) : string | null | ||
Результат | string | null | Returns User Agent |
public isFormData ( ) : boolean | ||
Результат | boolean | Returns true if content type is a form data |
public isJsonData ( ) : boolean | ||
Результат | boolean | Returns TRUE if content type is json |