Class shardimage\shardimagephpapi\web\requests\BaseRequest
Extendable request handler.
Protected Properties
Property | Type | Description | Defined By |
---|---|---|---|
$request | shardimage\shardimagephpapi\api\Request | API request object | shardimage\shardimagephpapi\web\requests\BaseRequest |
$service | shardimage\shardimagephpapi\services\Client|shardimage\shardimagephpapi\services\Server | Service | shardimage\shardimagephpapi\web\requests\BaseRequest |
Public Methods
Method | Description | Defined By |
---|---|---|
__construct() | Creates the request handler. | shardimage\shardimagephpapi\web\requests\BaseRequest |
getBody() | Returns the body. | shardimage\shardimagephpapi\web\requests\BaseRequest |
getHeaders() | Returns the headers in array. | shardimage\shardimagephpapi\web\requests\BaseRequest |
getMethod() | Returns the HTTP method. | shardimage\shardimagephpapi\web\requests\BaseRequest |
getUri() | Returns the uri after replacing the parameters. | shardimage\shardimagephpapi\web\requests\BaseRequest |
Protected Methods
Method | Description | Defined By |
---|---|---|
buildUri() | Builds the uri. | shardimage\shardimagephpapi\web\requests\BaseRequest |
formatUriParam() | shardimage\shardimagephpapi\web\requests\BaseRequest | |
parseUrlParams() | shardimage\shardimagephpapi\web\requests\BaseRequest | |
prepareUrlReplaceParams() | Prepares replace array | shardimage\shardimagephpapi\web\requests\BaseRequest |
Property Details
API request object
Service
Method Details
Creates the request handler.
public void __construct ( $service, $request ) | ||
$service | shardimage\shardimagephpapi\services\Client|shardimage\shardimagephpapi\services\Server | Service |
$request | shardimage\shardimagephpapi\api\Request | API request |
Builds the uri.
protected string buildUri ( ) | ||
throws | shardimage\shardimagephpapi\base\exceptions\InvalidCallException |
---|
protected void formatUriParam ( $param, $value ) | ||
$param | ||
$value |
Returns the body.
public string getBody ( ) |
Returns the headers in array.
public array getHeaders ( ) |
Returns the HTTP method.
public string getMethod ( ) |
Returns the uri after replacing the parameters.
public string getUri ( ) |
protected static void parseUrlParams ( $uri ) | ||
$uri |
Prepares replace array
protected void prepareUrlReplaceParams ( &$replace, $findKey, $paramValue ) | ||
$replace | array | |
$findKey | string | |
$paramValue | string |