Class shardimage\shardimagephpapi\web\requests\BaseRequest

Inheritanceshardimage\shardimagephpapi\web\requests\BaseRequest
Subclassesshardimage\shardimagephpapi\web\requests\CustomRequest, shardimage\shardimagephpapi\web\requests\FileRequest, shardimage\shardimagephpapi\web\requests\MultipartRequest, shardimage\shardimagephpapi\web\requests\PollRequest, shardimage\shardimagephpapi\web\requests\RestRequest

Extendable request handler.

Property Details

$request protected property

API request object

$service protected property

Service

Method Details

__construct() public method

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

buildUri() protected method

Builds the uri.

protected string buildUri ( )
throws shardimage\shardimagephpapi\base\exceptions\InvalidCallException
formatUriParam() protected method

protected void formatUriParam ( $param, $value )
$param
$value
getBody() public method

Returns the body.

public string getBody ( )
getHeaders() public method

Returns the headers in array.

public array getHeaders ( )
getMethod() public method

Returns the HTTP method.

public string getMethod ( )
getUri() public method

Returns the uri after replacing the parameters.

public string getUri ( )
parseUrlParams() protected static method

protected static void parseUrlParams ( $uri )
$uri
prepareUrlReplaceParams() protected method

Prepares replace array

protected void prepareUrlReplaceParams ( &$replace, $findKey, $paramValue )
$replace array
$findKey string
$paramValue string