class Illuminate / Http / Client / Pool

Pool

Properties

protected

$factory Factory

The factory instance.

Default: null
protected

$handler callable

The handler function for the Guzzle client.

Default: null
protected

$pool array

The pool of requests.

Default: []

Methods

public

__construct ( Factory $factory ) : void

Create a new requests pool.

Parameters

public

as ( string $key ) : PendingRequest

Add a request to the pool with a key.

Parameters

  • $key string
protected

asyncRequest ( ) : PendingRequest

Retrieve a new async pending request.

public

getRequests ( ) : array

Retrieve the requests in the pool.

public

__call ( $method , $parameters ) : PendingRequest |GuzzleHttp\...\Promise

Add a request to the pool with a numeric index.

Parameters

  • $method string
  • $parameters array