Overview

Namespaces

  • Docta
    • MercadoLibre
      • Exception
      • OAuth2
        • Client
          • Test
  • GuzzleHttp
    • Cookie
    • Exception
    • Handler
    • Promise
      • Test
      • Tests
    • Psr7
    • Test
      • Handler
    • Tests
      • CookieJar
      • Event
      • Exception
      • Handler
      • Promise
      • Psr7
  • League
    • OAuth2
      • Client
        • Grant
          • Exception
        • Provider
          • Exception
        • Test
          • Grant
          • Provider
            • Exception
            • Fake
          • Token
          • Tool
        • Token
        • Tool
  • None
  • Psr
    • Http
      • Message

Classes

  • CurlFactory
  • CurlHandler
  • CurlMultiHandler
  • MockHandler
  • Proxy
  • StreamHandler

Interfaces

  • CurlFactoryInterface

Functions

  • curl_setopt_array
  • Overview
  • Namespace
  • Class
  • Download

Class CurlFactory

Creates curl resources from a request

GuzzleHttp\Handler\CurlFactory implements GuzzleHttp\Handler\CurlFactoryInterface
Namespace: GuzzleHttp\Handler
Located at src/Handler/CurlFactory.php
Methods summary
public
# __construct( integer $maxHandles )

Parameters

$maxHandles
Maximum number of idle handles.
public EasyHandle
# create( Psr\Http\Message\RequestInterface $request, array $options )

Creates a cURL handle resource.

Creates a cURL handle resource.

Parameters

$request
Request
$options
Transfer options

Returns

EasyHandle

Throws

RuntimeException
when an option cannot be applied

Implementation of

GuzzleHttp\Handler\CurlFactoryInterface::create()
public
# release( GuzzleHttp\Handler\EasyHandle $easy )

Release an easy handle, allowing it to be reused or closed.

Release an easy handle, allowing it to be reused or closed.

This function must call unset on the easy handle's "handle" property.

Parameters

$easy

Implementation of

GuzzleHttp\Handler\CurlFactoryInterface::release()
public static GuzzleHttp\Promise\PromiseInterface
# finish( callable $handler, GuzzleHttp\Handler\EasyHandle $easy, GuzzleHttp\Handler\CurlFactoryInterface $factory )

Completes a cURL transaction, either returning a response promise or a rejected promise.

Completes a cURL transaction, either returning a response promise or a rejected promise.

Parameters

$handler
$easy
$factory
Dictates how the handle is released

Returns

GuzzleHttp\Promise\PromiseInterface
MercadoLibre PHP SDK API documentation generated by ApiGen