\Google_Http_Batch

Class to handle batched requests to the Google API service.

Summary

Methods
Properties
Constants
__construct()
add()
execute()
parseResponse()
No public properties found
BATCH_PATH
No protected methods found
No protected properties found
N/A
parseRawHeaders()
parseHttpResponse()
$CONNECTION_ESTABLISHED_HEADERS
$boundary
$requests
$client
N/A

Constants

BATCH_PATH

BATCH_PATH

Properties

$CONNECTION_ESTABLISHED_HEADERS

$CONNECTION_ESTABLISHED_HEADERS : 

Type

$boundary

$boundary : string

Type

string — Multipart Boundary.

$requests

$requests : array

Type

array — service requests to be executed.

Methods

__construct()

__construct(\Google_Client  $client) 

Parameters

\Google_Client $client

add()

add(\Psr\Http\Message\RequestInterface  $request,   $key = false) 

Parameters

\Psr\Http\Message\RequestInterface $request
$key

execute()

execute() 

parseResponse()

parseResponse(\Psr\Http\Message\ResponseInterface  $response,   $classes = array()) 

Parameters

\Psr\Http\Message\ResponseInterface $response
$classes

parseRawHeaders()

parseRawHeaders(  $rawHeaders) 

Parameters

$rawHeaders

parseHttpResponse()

parseHttpResponse(  $respData,   $headerSize) : array

Used by the IO lib and also the batch processing.

Parameters

$respData
$headerSize

Returns

array