RestTransport
class RestTransport implements TransportInterface
A REST based transport implementation.
Traits
Provides helper methods for service address handling.
Methods
static RestTransport
build(string $serviceAddress, string $restConfigPath, array $config = [])
Builds a RestTransport.
PromiseInterface
close()
Closes the connection, if one exists.
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)
at line 64
__construct(RequestBuilder $requestBuilder, callable $httpHandler)
at line 87
static RestTransport
build(string $serviceAddress, string $restConfigPath, array $config = [])
Builds a RestTransport.
at line 102
ClientStream
startClientStreamingCall(Call $call, array $options)
Starts a client streaming call.
at line 111
ServerStream
startServerStreamingCall(Call $call, array $options)
Starts a server streaming call.
at line 120
BidiStream
startBidiStreamingCall(Call $call, array $options)
Starts a bidi streaming call.
at line 128
PromiseInterface
startUnaryCall(Call $call, array $options)
Returns a promise used to execute network requests.
at line 176
close()
Closes the connection, if one exists.