class RestServerStreamingCall implements ServerStreamingCallInterface (View source)

Class RestServerStreamingCall implements \Google\ApiCore\ServerStreamingCallInterface.

Methods

__construct($httpHandler, $decodeType, array $decoderOptions)

No description

start($request, array $headers = [], array $callOptions = [])

Start the call.

mixed
responses()

No description

getStatus()

Return the status of the server stream. If the call has not been started this will be null.

mixed
getMetadata()

No description

mixed
getTrailingMetadata()

The Rest transport does not support trailing metadata. This is a passthrough to getMetadata().

string
getPeer()

No description

cancel()

Cancels the call.

setCallCredentials(mixed $call_credentials)

For the REST transport this is a no-op.

Details

__construct($httpHandler, $decodeType, array $decoderOptions)

No description

Parameters

$httpHandler
$decodeType
array $decoderOptions

start($request, array $headers = [], array $callOptions = [])

Start the call.

Parameters

$request
array $headers
array $callOptions

mixed responses()

No description

Return Value

mixed

An iterator of response values.

stdClass getStatus()

Return the status of the server stream. If the call has not been started this will be null.

Return Value

stdClass

The API status.

mixed getMetadata()

No description

Return Value

mixed

The metadata sent by the server.

mixed getTrailingMetadata()

The Rest transport does not support trailing metadata. This is a passthrough to getMetadata().

Return Value

mixed

The trailing metadata sent by the server.

string getPeer()

No description

Return Value

string

The URI of the endpoint.

cancel()

Cancels the call.

setCallCredentials(mixed $call_credentials)

For the REST transport this is a no-op.

Parameters

mixed $call_credentials

The CallCredentials object