RestTransport
class RestTransport implements TransportInterface (View source)
A REST based transport implementation.
Traits
ServiceAddressTrait deprecated
Provides helper methods for service address handling.
A trait for shared functionality between transports that support only unary RPCs using simple HTTP requests.
Methods
never
static RestTransport
build(string $apiEndpoint, string $restConfigPath, array $config = [])
Builds a RestTransport.
PromiseInterface
Details
static array
validate(array $arr, array $requiredKeys)
No description
static array
validateNotNull(array $arr, array $requiredKeys)
No description
never
startClientStreamingCall(Call $call, array $options)
{@inheritdoc}
ServerStream
startServerStreamingCall(Call $call, array $options)
Starts a server streaming call.
never
startBidiStreamingCall(Call $call, array $options)
{@inheritdoc}
close()
{@inheritdoc}
__construct(RequestBuilder $requestBuilder, callable $httpHandler)
No description
static RestTransport
build(string $apiEndpoint, string $restConfigPath, array $config = [])
Builds a RestTransport.
PromiseInterface
startUnaryCall(Call $call, array $options)
Returns a promise used to execute network requests.