Copied!

Class RestServerStreamingCall implements \Google\ApiCore\ServerStreamingCallInterface.

  • experimental
CloneableInstantiable
Methods
public __construct(callable $httpHandler, string $decodeType, array $decoderOptions)
 
  • param callable $httpHandler
  • param string $decodeType
  • param mixed[] $decoderOptions
public cancel()
 
    public getMetadata()
     
      public getPeer()
       
        public getStatus()
         

        Return the status of the server stream. If the call has not been started this will be null.

        • return \stdClass The status, with integer $code, string $details, and array $metadata members
        public getTrailingMetadata()
         

        The Rest transport does not support trailing metadata. This is a passthrough to getMetadata().

        public responses()
         
          public setCallCredentials( $call_credentials)
           

          For the REST transport this is a no-op.

            public start( $request, array $headers = [], array $callOptions = [])
             
              Properties
              private ?Google\ApiCore\Transport\Rest\JsonStreamDecoder $decoder
              private array $decoderOptions
               
              • var mixed[]
              private string $decodeType
              private $httpHandler = NULL
               
              • var callable
              private Psr\Http\Message\RequestInterface $originalRequest
              private ?Psr\Http\Message\ResponseInterface $response
              private stdClass $status
              Methods
              private appendHeaders(Psr\Http\Message\RequestInterface $request, array $headers)
               
              • param \RequestInterface $request
              • param mixed[] $headers
              • return \RequestInterface
              © 2026 Bruce Wells
              Search Namespaces \ Classes
              Configuration