class ForwardingUnaryCall extends ForwardingCall (View source)

Class ForwardingUnaryCall wraps a \Grpc\UnaryCall.

Properties

protected AbstractCall $innerCall from  ForwardingCall

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()

Return Value

mixed The metadata sent by the server

mixed getTrailingMetadata()

Return Value

mixed The trailing metadata sent by the server

string getPeer()

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]