Class shardimage\shardimagephpapi\web\Request
Inheritance | shardimage\shardimagephpapi\web\Request |
---|
Request handler object.
Public Methods
Method | Description | Defined 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
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) |
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) |
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 ( ) |