Creates curl resources from a request

CloneableInstantiable
ImplementsGuzzleHttp\Handler\CurlFactoryInterface
Constants
public GuzzleHttp\Handler\CurlFactory::CURL_VERSION_STR = 'curl_version'
public GuzzleHttp\Handler\CurlFactory::LOW_CURL_VERSION_NUMBER = '7.21.2'
Methods
public __construct( $maxHandles)
 


    public create(Psr\Http\Message\RequestInterface $request, array $options)
    public static finish(callable $handler, GuzzleHttp\Handler\EasyHandle $easy, GuzzleHttp\Handler\CurlFactoryInterface $factory)
     
    Completes a cURL transaction, either returning a response promise or a rejected promise.

    public release(GuzzleHttp\Handler\EasyHandle $easy)
    Properties
    private $handles
     


    • var array
    private $maxHandles
     


    • var int Total number of idle handles to keep in cache
    Methods
    private applyBody(Psr\Http\Message\RequestInterface $request, array $options, array $conf)
    private applyHandlerOptions(GuzzleHttp\Handler\EasyHandle $easy, array $conf)
    private applyHeaders(GuzzleHttp\Handler\EasyHandle $easy, array $conf)
    private applyMethod(GuzzleHttp\Handler\EasyHandle $easy, array $conf)
    private createHeaderFn(GuzzleHttp\Handler\EasyHandle $easy)
    private static createRejection(GuzzleHttp\Handler\EasyHandle $easy, array $ctx)
    private static finishError(callable $handler, GuzzleHttp\Handler\EasyHandle $easy, GuzzleHttp\Handler\CurlFactoryInterface $factory)
    private getDefaultConf(GuzzleHttp\Handler\EasyHandle $easy)
    private static invokeStats(GuzzleHttp\Handler\EasyHandle $easy)
    private removeHeader( $name, array $options)
     
    Remove a header from the options array.

      private static retryFailedRewind(callable $handler, GuzzleHttp\Handler\EasyHandle $easy, array $ctx)
       
      This function ensures that a response was set on a transaction. If one was not set, then the request is retried if possible. This error typically means you are sending a payload, curl encountered a "Connection died, retrying a fresh connect" error, tried to rewind the stream, and then encountered a "necessary data rewind wasn't possible" error, causing the request to be sent through curl_multi_info_read() without an error status.

      Methods
      private static createRejection(GuzzleHttp\Handler\EasyHandle $easy, array $ctx)
      public static finish(callable $handler, GuzzleHttp\Handler\EasyHandle $easy, GuzzleHttp\Handler\CurlFactoryInterface $factory)
       
      Completes a cURL transaction, either returning a response promise or a rejected promise.

      private static finishError(callable $handler, GuzzleHttp\Handler\EasyHandle $easy, GuzzleHttp\Handler\CurlFactoryInterface $factory)
      private static invokeStats(GuzzleHttp\Handler\EasyHandle $easy)
      private static retryFailedRewind(callable $handler, GuzzleHttp\Handler\EasyHandle $easy, array $ctx)
       
      This function ensures that a response was set on a transaction. If one was not set, then the request is retried if possible. This error typically means you are sending a payload, curl encountered a "Connection died, retrying a fresh connect" error, tried to rewind the stream, and then encountered a "necessary data rewind wasn't possible" error, causing the request to be sent through curl_multi_info_read() without an error status.

      © 2020 Bruce Wells
      Search Namespaces \ Classes
      ConfigurationNumbers (0-9.) only