GrpcFallbackTransport
class GrpcFallbackTransport implements TransportInterface
A transport that sends protobuf over HTTP 1.1 that can be used when full gRPC support is not available.
Traits
Provides helper methods for service address handling.
A trait for shared functionality between transports that support only unary RPCs using simple
HTTP requests.
Methods
__construct(string $baseUri, callable $httpHandler)
No description
static GrpcFallbackTransport
build(string $serviceAddress, array $config = [])
Builds a GrpcFallbackTransport.
PromiseInterface
Details
in ValidationTrait at line 41
static array
validate(array $arr, array $requiredKeys)
in ValidationTrait at line 51
static array
validateNotNull(array $arr, array $requiredKeys)
in HttpUnaryTransportTrait at line 52
startClientStreamingCall(Call $call, array $options)
{@inheritdoc}
in HttpUnaryTransportTrait at line 61
startServerStreamingCall(Call $call, array $options)
{@inheritdoc}
in HttpUnaryTransportTrait at line 70
startBidiStreamingCall(Call $call, array $options)
{@inheritdoc}
in HttpUnaryTransportTrait at line 78
close()
{@inheritdoc}
at line 63
__construct(string $baseUri, callable $httpHandler)
at line 85
static GrpcFallbackTransport
build(string $serviceAddress, array $config = [])
Builds a GrpcFallbackTransport.
at line 98
PromiseInterface
startUnaryCall(Call $call, array $options)
Returns a promise used to execute network requests.