A REST based transport implementation.

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

    Builds a RestTransport.

    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 static $defaultPort = 443
    private $httpHandler
    private $requestBuilder
    private $transportName
    Methods
    private static buildCommonHeaders(array $options)
     
    • return array
    private static buildHttpHandlerAsync()
     
    • return callable
    • throws ValidationException
    private convertToApiException(GuzzleHttp\Exception\RequestException $ex)
     
    • return ApiException
    • throws ValidationException
    private getCallOptions(array $options)
    private static normalizeServiceAddress( $apiEndpoint)
     
    • return array
    • throws ValidationException
    private throwUnsupportedException()
    private static validateFileExists( $filePath)
     
    • throws ValidationException
    private static validateImpl( $arr, $requiredKeys, $allowNull)
    Properties
    private static $defaultPort = 443
    Methods
    public static build( $apiEndpoint, $restConfigPath, array $config = [])
     

    Builds a RestTransport.

    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