class ForwardingUnaryCall extends ForwardingCall (View source)

Class ForwardingUnaryCall wraps a \Grpc\UnaryCall.

Properties

protected UnaryCall $innerCall

Methods

__construct(AbstractCall|ForwardingCall $innerCall)

ForwardingCall constructor.

mixed
getMetadata()

No description

mixed
getTrailingMetadata()

No description

string
getPeer()

No description

cancel()

Cancels the call.

array
wait()

Wait for the server to respond with data and a status.

Details

__construct(AbstractCall|ForwardingCall $innerCall)

ForwardingCall constructor.

Parameters

AbstractCall|ForwardingCall $innerCall

mixed getMetadata()

No description

Return Value

mixed

The metadata sent by the server

mixed getTrailingMetadata()

No description

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.

array wait()

Wait for the server to respond with data and a status.

Return Value

array

[response data, status]