final class BidiStreamingCall extends Call

Methods

__construct(StreamState $state, string $method, string $peer, array|callable $deserialize, Deadline $deadline, Connection $connection, FrameEncoder $requestEncoder, Compression $requestCompression = Compression::Identity)

Create an active bidirectional-streaming call.

metadata()

Return the server's initial metadata.

from  Call
trailers()

Return the server's trailing metadata.

from  Call
status()

Return the final gRPC status without throwing for an RPC error.

from  Call
string
peer()

Return the normalized peer authority selected for this call.

from  Call
Message
waitForUnaryResponse()

Resolve and cache a unary response for every concurrent waiter.

from  Call
Message|null
readResponse()

Read and deserialize the next response message.

from  Call
void
beginReading()

Claim this call's single streaming response reader.

from  Call
void
endReading()

Release this call's streaming response reader.

from  Call
void
configureWriter(Connection $connection, FrameEncoder $requestEncoder, Compression $requestCompression)

Configure client-streaming request writes.

from  Call
void
writeRequest(Message $message)

Write one client-streaming request message.

from  Call
void
finishWrites()

Half-close the client-streaming request body.

from  Call
void
write(Message $message)

Write one request message.

Message|null
read()

Read the next response message or return null after a clean end.

void
writesDone()

Finish the request stream while response reads remain available.

Details

at line 21
__construct(StreamState $state, string $method, string $peer, array|callable $deserialize, Deadline $deadline, Connection $connection, FrameEncoder $requestEncoder, Compression $requestCompression = Compression::Identity)

internal  
 

Create an active bidirectional-streaming call.

Parameters

StreamState $state
string $method
string $peer
array|callable $deserialize
Deadline $deadline
Connection $connection
FrameEncoder $requestEncoder
Compression $requestCompression

in Call at line 107
Metadata metadata()

Return the server's initial metadata.

Return Value

Metadata

in Call at line 152
Metadata trailers()

Return the server's trailing metadata.

Return Value

Metadata

in Call at line 182
Status status()

Return the final gRPC status without throwing for an RPC error.

Return Value

Status

in Call at line 211
string peer()

Return the normalized peer authority selected for this call.

Return Value

string

in Call at line 219
protected Message waitForUnaryResponse()

Resolve and cache a unary response for every concurrent waiter.

Return Value

Message

in Call at line 264
protected Message|null readResponse()

Read and deserialize the next response message.

Return Value

Message|null

in Call at line 274
protected void beginReading()

Claim this call's single streaming response reader.

Return Value

void

in Call at line 286
protected void endReading()

Release this call's streaming response reader.

Return Value

void

in Call at line 294
protected void configureWriter(Connection $connection, FrameEncoder $requestEncoder, Compression $requestCompression)

Configure client-streaming request writes.

Parameters

Connection $connection
FrameEncoder $requestEncoder
Compression $requestCompression

Return Value

void

in Call at line 316
protected void writeRequest(Message $message)

Write one client-streaming request message.

Parameters

Message $message

Return Value

void

in Call at line 376
protected void finishWrites()

Half-close the client-streaming request body.

Return Value

void

at line 38
void write(Message $message)

Write one request message.

Parameters

Message $message

Return Value

void

at line 46
Message|null read()

Read the next response message or return null after a clean end.

Return Value

Message|null

at line 60
void writesDone()

Finish the request stream while response reads remain available.

Return Value

void