HTTP handler that uses PHP's HTTP stream wrapper.

CloneableInstantiable
Methods
public __invoke(Psr\Http\Message\RequestInterface $request, array $options) : GuzzleHttp\Promise\PromiseInterface
 

Sends an HTTP request.

    Properties
    private $lastHeaders
     
    • var array
    Methods
    private add_cert(Psr\Http\Message\RequestInterface $request, array $options, $value, array $params) : void
     
      private add_debug(Psr\Http\Message\RequestInterface $request, array $options, $value, array $params) : void
       
        private add_progress(Psr\Http\Message\RequestInterface $request, array $options, $value, array $params) : void
         
          private add_proxy(Psr\Http\Message\RequestInterface $request, array $options, $value, array $params) : void
           
            private add_timeout(Psr\Http\Message\RequestInterface $request, array $options, $value, array $params) : void
             
              private add_verify(Psr\Http\Message\RequestInterface $request, array $options, $value, array $params) : void
               
                private addNotification(array $params, callable $notify) : void
                private callArray(array $functions) : callable
                private checkDecode(array $options, array $headers, $stream) : array
                 
                  private createResource(callable $callback)
                   

                  Create a resource and check to ensure it was created successfully

                  • return resource
                  • throws RuntimeException on error
                  private createResponse(Psr\Http\Message\RequestInterface $request, array $options, $stream, ?float $startTime) : GuzzleHttp\Promise\PromiseInterface
                   
                    private createSink(Psr\Http\Message\StreamInterface $stream, array $options) : Psr\Http\Message\StreamInterface
                    private createStream(Psr\Http\Message\RequestInterface $request, array $options)
                     
                    • return resource
                    private drain(Psr\Http\Message\StreamInterface $source, Psr\Http\Message\StreamInterface $sink, string $contentLength) : Psr\Http\Message\StreamInterface
                     

                    Drains the source stream into the "sink" client option.

                    • throws RuntimeException when the sink option is invalid.
                    private getDefaultContext(Psr\Http\Message\RequestInterface $request) : array
                    private invokeStats(array $options, Psr\Http\Message\RequestInterface $request, ?float $startTime, ?Psr\Http\Message\ResponseInterface $response = NULL, ?Throwable $error = NULL) : void
                    private resolveHost(Psr\Http\Message\RequestInterface $request, array $options) : Psr\Http\Message\UriInterface
                    © 2020 Bruce Wells
                    Search Namespaces \ Classes
                    ConfigurationNumbers (0-9.) only