ResponseFactory
class ResponseFactory
| internal |
Convert service values and failures into protocol-owned gRPC responses.
Constants
| internal COMPRESSION_ATTRIBUTE |
|
| private STATUS_TRAILER_NAMES |
|
| private MAX_SERVER_FIELD_NAME_LENGTH |
|
Methods
__construct(ExceptionMapper $exceptions, CallContextStore $contexts, int $maxSendMessageSize, int $maxMetadataSize)
No description
static int
minimumMetadataSize()
Calculate the smallest metadata limit that preserves the compact fallback.
finalizeForEmission(Response $response)
Validate the exact response state that will be emitted by the bridge.
Details
at line 52
__construct(ExceptionMapper $exceptions, CallContextStore $contexts, int $maxSendMessageSize, int $maxMetadataSize)
No description
at line 77
static int
minimumMetadataSize()
| internal |
Calculate the smallest metadata limit that preserves the compact fallback.
at line 96
GrpcHttpResponse|GrpcStreamedResponse
make(Request $request, mixed $value)
Convert one service result according to its registered call shape.
at line 130
GrpcHttpResponse
error(RpcException $failure)
| internal |
Build a trailers-only response for a failure outside route dispatch.
at line 138
GrpcHttpResponse|GrpcStreamedResponse
finalizeForEmission(Response $response)
Validate the exact response state that will be emitted by the bridge.