A transport that sends protobuf over HTTP 1.1 that can be used when full gRPC support is not available.
CloneableInstantiable
| Methods |
public __construct(string $baseUri, callable $httpHandler)
|
| public static build(string $apiEndpoint, array $config = []) Builds a GrpcFallbackTransport.
|
| 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)
|
| Properties |
| private string $baseUri |
| private $clientCertSource = NULL |
| private static $defaultPort = 443 |
| private $httpHandler = NULL |
| private $transportName = NULL |
| Methods |
private static buildCommonHeaders(array $options)
|
private static buildHttpHandlerAsync(Psr\Log\LoggerInterface|false|?null $logger = NULL)
|
private buildRequest(Google
|
| 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 transformException(Exception $ex)
|
private unpackResponse(Google
|
private static validateFileExists(string $filePath)
|
| private static validateImpl( $arr, $requiredKeys, $allowNull) |
| Properties |
| private static $defaultPort = 443 |
| Methods |
| public static build(string $apiEndpoint, array $config = []) Builds a GrpcFallbackTransport.
|
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)
|