class RestServerStreamingCall implements ServerStreamingCallInterface (View source)

Class RestServerStreamingCall implements \Google\ApiCore\ServerStreamingCallInterface.

Methods

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

No description

void
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

void
cancel()

Cancels the call.

void
setCallCredentials(mixed $call_credentials)

For the REST transport this is a no-op.

Details

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

No description

Parameters

callable $httpHandler
string $decodeType
array $decoderOptions

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

Start the call.

Parameters

$request
array $headers
array $callOptions

Return Value

void

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.

void cancel()

Cancels the call.

Return Value

void

void setCallCredentials(mixed $call_credentials)

For the REST transport this is a no-op.

{@inheritdoc}

Parameters

mixed $call_credentials

The CallCredentials object

Return Value

void