IApiRequest
extends
IRequest
in
Tags
Table of Contents
Constants
- METHOD_CONNECT = 'CONNECT'
- METHOD_DELETE = 'DELETE'
- METHOD_GET = 'GET'
- METHOD_HEAD = 'HEAD'
- METHOD_OPTIONS = 'OPTIONS'
- METHOD_POST = 'POST'
- METHOD_PUT = 'PUT'
- METHOD_TRACE = 'TRACE'
Methods
- getApiKey() : string|null
- Gets the API key that was sent along with this request as the header X_API_KEY
- getBody() : string|null
- Gets the body of the message. String if it has been set / initialized, null otherwise.
- getHeader() : mixed
- getMethod() : string
- Retrieves the HTTP method of the request.
- getParameter() : mixed
- Gets the value of a parameter that was sent in this request
- getParameters() : array<string|int, mixed>
- getUri() : string
- Retrieves the URI of the request.
- isExternal() : bool
- isInternal() : bool
- setBody() : mixed
- Sets the body of the message.
Constants
METHOD_CONNECT
public
string
METHOD_CONNECT
= 'CONNECT'
METHOD_DELETE
public
string
METHOD_DELETE
= 'DELETE'
METHOD_GET
public
string
METHOD_GET
= 'GET'
METHOD_HEAD
public
string
METHOD_HEAD
= 'HEAD'
METHOD_OPTIONS
public
string
METHOD_OPTIONS
= 'OPTIONS'
METHOD_POST
public
string
METHOD_POST
= 'POST'
METHOD_PUT
public
string
METHOD_PUT
= 'PUT'
METHOD_TRACE
public
string
METHOD_TRACE
= 'TRACE'
Methods
getApiKey()
Gets the API key that was sent along with this request as the header X_API_KEY
public
getApiKey() : string|null
Return values
string|null —The API key if it was sent with this request, null otherwise
getBody()
Gets the body of the message. String if it has been set / initialized, null otherwise.
public
getBody() : string|null
Return values
string|nullgetHeader()
public
getHeader(string $header_name) : mixed
Parameters
- $header_name : string
getMethod()
Retrieves the HTTP method of the request.
public
getMethod() : string
Return values
stringgetParameter()
Gets the value of a parameter that was sent in this request
public
getParameter(string $paramater) : mixed
Parameters
- $paramater : string
getParameters()
public
getParameters() : array<string|int, mixed>
Return values
array<string|int, mixed>getUri()
Retrieves the URI of the request.
public
getUri() : string
Return values
stringisExternal()
public
isExternal() : bool
Return values
boolisInternal()
public
isInternal() : bool
Return values
boolsetBody()
Sets the body of the message.
public
setBody(string $body) : mixed
Parameters
- $body : string