Factory
class Factory (View source)
Properties
protected Application | $app |
Methods
array
createFromConfig(Repository $config, string|object|null $adapter = null)
Create a new HTTP Client instance starting from configuration.
createFromOptions(array $options, mixed $handler = null)
Create a new HTTP Client instance starting from configuration.
array
Details
__construct(Application $app)
No description
protected array
getOptions(Repository $config)
Read the HTTP Client configuration.
Client
createFromConfig(Repository $config, string|object|null $adapter = null)
Create a new HTTP Client instance starting from configuration.
Client
createFromOptions(array $options, mixed $handler = null)
Create a new HTTP Client instance starting from configuration.
array
getDefaultOptions(Repository $config)
Get the default options for the HTTP client.