A transport that sends protobuf over HTTP 1.1 that can be used when full gRPC support
is not available.

CloneableInstantiable
ImplementsGoogle\ApiCore\Transport\TransportInterface
Methods
public __construct( $baseUri, callable $httpHandler)
 
    public static build( $apiEndpoint, array $config = [])
     

    Builds a GrpcFallbackTransport.

    public close()
     

    {@inheritdoc}

    public startBidiStreamingCall(Google\ApiCore\Call $call, array $options)
     

    {@inheritdoc}

    • throws BadMethodCallException
    public startClientStreamingCall(Google\ApiCore\Call $call, array $options)
     

    {@inheritdoc}

    • throws BadMethodCallException
    public startServerStreamingCall(Google\ApiCore\Call $call, array $options)
     

    {@inheritdoc}

    • throws BadMethodCallException
    public startUnaryCall(Google\ApiCore\Call $call, array $options)
     

    {@inheritdoc}

    public static validate( $arr, $requiredKeys)
     
    • return array Returns $arr for fluent use
    public static validateNotNull( $arr, $requiredKeys)
     
    • return array Returns $arr for fluent use
    Properties
    private $baseUri
    private static $defaultPort = 443
    private $httpHandler
    private $transportName
    Methods
    private static buildCommonHeaders(array $options)
     
    • return array
    private static buildHttpHandlerAsync()
     
    • return callable
    • throws ValidationException
    private buildRequest(Google\ApiCore\Call $call, array $options)
     
    • return RequestInterface
    private getCallOptions(array $options)
     
    • return array
    private static normalizeServiceAddress( $apiEndpoint)
     
    • return array
    • throws ValidationException
    private throwUnsupportedException()
    private transformException(Exception $ex)
     
    • return Exception
    private unpackResponse(Google\ApiCore\Call $call, Psr\Http\Message\ResponseInterface $response)
     
    • return Message
    private static validateFileExists( $filePath)
     
    • throws ValidationException
    private static validateImpl( $arr, $requiredKeys, $allowNull)
    Properties
    private static $defaultPort = 443
    Methods
    public static build( $apiEndpoint, array $config = [])
     

    Builds a GrpcFallbackTransport.

    private static buildCommonHeaders(array $options)
     
    • return array
    private static buildHttpHandlerAsync()
     
    • return callable
    • throws ValidationException
    private static normalizeServiceAddress( $apiEndpoint)
     
    • return array
    • throws ValidationException
    public static validate( $arr, $requiredKeys)
     
    • return array Returns $arr for fluent use
    private static validateFileExists( $filePath)
     
    • throws ValidationException
    private static validateImpl( $arr, $requiredKeys, $allowNull)
    public static validateNotNull( $arr, $requiredKeys)
     
    • return array Returns $arr for fluent use
    © 2020 Bruce Wells
    Search Namespaces \ Classes
    ConfigurationNumbers (0-9.) only