choose_handler()
choose_handler() : \GuzzleHttp\callable(\Psr\Http\Message\RequestInterface,
Chooses and creates a default handler to use based on the environment.
The returned handler is not wrapped by any default middlewares.
Throws
- \RuntimeException
if no viable Handler is available.
Returns
\GuzzleHttp\callable(\Psr\Http\Message\RequestInterface, —array): \GuzzleHttp\Promise\PromiseInterface Returns the best handler for the given system.