Class shardimage\shardimagephpapi\web\Request

Inheritanceshardimage\shardimagephpapi\web\Request

Request handler object.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Creates a request handler. shardimage\shardimagephpapi\web\Request
add() Adds one or more API requests to the request handler. shardimage\shardimagephpapi\web\Request
send() Sends the request, then parses and returns the response. shardimage\shardimagephpapi\web\Request

Method Details

__construct() public method

Creates a request handler.

public void __construct ( $client, $request null )
$client shardimage\shardimagephpapi\services\Client

Client service

$request shardimage\shardimagephpapi\api\Request|shardimage\shardimagephpapi\api\Request[]|null

API request(s)

add() public method

Adds one or more API requests to the request handler.

public void add ( $requests )
$requests shardimage\shardimagephpapi\api\Request|shardimage\shardimagephpapi\api\Request[]

API request(s)

send() public method

Sends the request, then parses and returns the response.

If the backend has thrown a general exception, throws the exception here as well.

public shardimage\shardimagephpapi\api\Response|shardimage\shardimagephpapi\api\Response[] send ( )