A REST based transport implementation.
CloneableInstantiable
| Methods |
public __construct(Google
|
| public static build(string $apiEndpoint, string $restConfigPath, array $config = []) Builds a RestTransport.
|
| public close() |
public startBidiStreamingCall(Google
|
public startClientStreamingCall(Google
|
public startServerStreamingCall(Google
|
| public startUnaryCall(Google |
public static validate(array $arr, array $requiredKeys)
|
public static validateNotNull(array $arr, array $requiredKeys)
|
| Methods |
protected unsupportedServerStreamingCall(Google
|
| Properties |
| private $clientCertSource = NULL |
| private static $defaultPort = 443 |
| private $httpHandler = NULL |
| private Google |
| private $transportName = NULL |
| Methods |
| private _serverStreamRequest( $httpHandler, $request, $headers, $decodeType, $callOptions, $decoderOptions = []) Creates and starts a RestServerStreamingCall.
|
private static buildCommonHeaders(array $options)
|
private static buildHttpHandlerAsync(Psr\Log\LoggerInterface|false|?null $logger = NULL)
|
| private configureMtlsChannel(callable $clientCertSource) Set the path to a client certificate.
|
private getCallOptions(array $options)
|
| private static loadClientCertSource(callable $clientCertSource) |
private static normalizeServiceAddress(string $apiEndpoint)
|
private throwUnsupportedException()
|
private static validateFileExists(string $filePath)
|
| private static validateImpl( $arr, $requiredKeys, $allowNull) |
| Properties |
| private static $defaultPort = 443 |
| Methods |
| public static build(string $apiEndpoint, string $restConfigPath, array $config = []) Builds a RestTransport.
|
private static buildCommonHeaders(array $options)
|
private static buildHttpHandlerAsync(Psr\Log\LoggerInterface|false|?null $logger = NULL)
|
| private static loadClientCertSource(callable $clientCertSource) |
private static normalizeServiceAddress(string $apiEndpoint)
|
public static validate(array $arr, array $requiredKeys)
|
private static validateFileExists(string $filePath)
|
| private static validateImpl( $arr, $requiredKeys, $allowNull) |
public static validateNotNull(array $arr, array $requiredKeys)
|