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 Proxy

Provides basic proxies for handlers.

Namespace: GuzzleHttp\Handler
Located at src/Handler/Proxy.php
Methods summary
public static callable
# wrapSync( callable $default, callable $sync )

Sends synchronous requests to a specific handler while sending all other requests to another handler.

Sends synchronous requests to a specific handler while sending all other requests to another handler.

Parameters

$default
Handler used for normal responses
$sync
Handler used for synchronous responses.

Returns

callable
Returns the composed handler.
public static callable
# wrapStreaming( callable $default, callable $streaming )

Sends streaming requests to a streaming compatible handler while sending all other requests to a default handler.

Sends streaming requests to a streaming compatible handler while sending all other requests to a default handler.

This, for example, could be useful for taking advantage of the performance benefits of curl while still supporting true streaming through the StreamHandler.

Parameters

$default
Handler used for non-streaming responses
$streaming
Handler used for streaming responses

Returns

callable
Returns the composed handler.
MercadoLibre PHP SDK API documentation generated by ApiGen