GrpcStreamedResponse
class GrpcStreamedResponse extends IterableStreamedResponse implements HasTrailers
| internal |
Carry a lazily produced protocol-owned gRPC stream to the HTTP/2 bridge.
Methods
No description
Set the chunks associated with the response.
Set the callback associated with the response.
Set the response content.
Get the trailer names known before response emission.
Get the final response trailers.
Complete the call that owns this response.
Determine whether middleware preserved the protocol-owned response state.
Details
at line 35
__construct(iterable $chunks, array $headers, array $trailerNames, Closure $resolveTrailers)
No description
at line 55
IterableStreamedResponse
setChunks(iterable $chunks)
Set the chunks associated with the response.
at line 68
IterableStreamedResponse
setCallback(callable $callback)
Set the callback associated with the response.
in
IterableStreamedResponse at line 61
IterableStreamedResponse
sendContent()
Send the response content.
in
IterableStreamedResponse at line 88
bool
streamTo(Closure $write)
| internal |
Stream retained chunks through the given writer.
at line 81
GrpcStreamedResponse
setContent(string|null $content)
Set the response content.
at line 94
array
trailerNames()
Get the trailer names known before response emission.
at line 104
array
trailers()
Get the final response trailers.
at line 114
void
completeUsing(Closure $completion)
| internal |
Register cleanup for the call that owns this response.
at line 124
void
complete()
| internal |
Complete the call that owns this response.
at line 137
bool
protocolStateIsIntact()
| internal |
Determine whether middleware preserved the protocol-owned response state.