Documentation

Google_Http_Batch
in package

Class to handle batched requests to the Google API service.

Note that calls to Google_Http_Batch::execute() do not clear the queued requests. To start a new batch, be sure to create a new instance of this class.

Table of Contents

BATCH_PATH  = 'batch'
$batchPath  : mixed
$boundary  : string
$client  : Google_Client
$CONNECTION_ESTABLISHED_HEADERS  : mixed
$requests  : array<string|int, mixed>
$rootUrl  : mixed
__construct()  : mixed
add()  : mixed
execute()  : mixed
parseResponse()  : mixed
parseHttpResponse()  : array<string|int, mixed>
Used by the IO lib and also the batch processing.
parseRawHeaders()  : mixed

Constants

BATCH_PATH

public mixed BATCH_PATH = 'batch'

Properties

$batchPath

private mixed $batchPath

$boundary

private string $boundary

Multipart Boundary.

$CONNECTION_ESTABLISHED_HEADERS

private static mixed $CONNECTION_ESTABLISHED_HEADERS = array("HTTP/1.0 200 Connection established ", "HTTP/1.1 200 Connection established ")

$requests

private array<string|int, mixed> $requests = array()

service requests to be executed.

$rootUrl

private mixed $rootUrl

Methods

__construct()

public __construct(Google_Client $client[, mixed $boundary = false ][, mixed $rootUrl = null ][, mixed $batchPath = null ]) : mixed
Parameters
$client : Google_Client
$boundary : mixed = false
$rootUrl : mixed = null
$batchPath : mixed = null
Return values
mixed

execute()

public execute() : mixed
Return values
mixed

parseHttpResponse()

Used by the IO lib and also the batch processing.

private parseHttpResponse( $respData,  $headerSize) : array<string|int, mixed>
Parameters
$respData :
$headerSize :
Return values
array<string|int, mixed>

parseRawHeaders()

private parseRawHeaders(mixed $rawHeaders) : mixed
Parameters
$rawHeaders : mixed
Return values
mixed

Search results