class
Illuminate
/
Http
/
Client
/
Pool
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
Pool
Properties
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
- $factory Factory |null
public
as ( string $key ) : PendingRequest
Add a request to the pool with a key.
Parameters
- $key string
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