Overview

Namespaces

  • Baguette
    • Mastodon
      • Config
      • Entity
      • Grant
      • Service
  • GuzzleHttp
    • Cookie
    • Exception
    • Handler
    • Promise
  • Psr
    • Http
      • Message
  • Teto
    • Object

Classes

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

Interfaces

  • CurlFactoryInterface
  • Overview
  • Namespace
  • Class

Class CurlMultiHandler

Returns an asynchronous response using curl_multi_* functions.

When using the CurlMultiHandler, custom curl options can be specified as an associative array of curl option constants mapping to values in the curl key of the provided request options.

Namespace: GuzzleHttp\Handler
Located at Handler/CurlMultiHandler.php
Methods summary
public
# __construct( array $options = [] )

This handler accepts the following options:

This handler accepts the following options:

  • handle_factory: An optional factory used to create curl handles
  • select_timeout: Optional timeout (in seconds) to block before timing out while selecting curl handles. Defaults to 1 second.

Parameters

$options
public
# __get( $name )
public
# __destruct( )
public
# __invoke( Psr\Http\Message\RequestInterface $request, array $options )
public
# tick( )

Ticks the curl event loop.

Ticks the curl event loop.

public
# execute( )

Runs until all outstanding connections have completed.

Runs until all outstanding connections have completed.

Magic properties summary
public resource $_mh

Internal use only. Lazy loaded multi-handle.

ξ ^ω^)ξ Baguette PHP Mastodon API Client / SDK API documentation generated by ApiGen