\google\appengine\runtime\ApiProxy

Methods

makeSyncCall

STATIC   

makeSyncCall(string $package, string $call_name, string $request, string $response, double $deadline = null)

Makes a synchronous RPC call.

Parameters

Name Description

$package

string

Package to call

$call_name

string

Specific RPC call to make

$request

string

Request proto, serialised to string

$response

string

Response proto string to populate

$deadline

double

Optional deadline for the RPC call

setApiProxy

STATIC   

setApiProxy(resource $apiProxy)

Set the API Proxy instance used to make the RPC call. Allows for mocking in tests.

Parameters

Name Description

$apiProxy

resource

API Proxy instance to use