Copied!

HTTP handler that uses PHP's HTTP stream wrapper.

  • final
Cloneable Instantiable
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 static addNotification ( array $params , callable $notify ) : void
private static 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
Methods
private static addNotification ( array $params , callable $notify ) : void
private static callArray ( array $functions ) : callable
© 2020 Bruce Wells
Search Namespaces \ Classes
Configuration Numbers (0-9.) only