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.
Return the first-frame content length reserved during header accounting.
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, int $reservedContentLength)
No description
at line 56
IterableStreamedResponse
setChunks(iterable $chunks)
Set the chunks associated with the response.
at line 69
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 82
GrpcStreamedResponse
setContent(string|null $content)
Set the response content.
at line 95
array
trailerNames()
Get the trailer names known before response emission.
at line 103
array
trailers()
Get the final response trailers.
at line 113
int
reservedContentLength()
| internal |
Return the first-frame content length reserved during header accounting.
at line 123
void
completeUsing(Closure $completion)
| internal |
Register cleanup for the call that owns this response.
at line 133
void
complete()
| internal |
Complete the call that owns this response.
at line 146
bool
protocolStateIsIntact()
| internal |
Determine whether middleware preserved the protocol-owned response state.