HttpClientConfig
in package
This class is automatically generated to help in creating a config.
Table of Contents
Properties
- $_usedProperties : mixed
- $defaultOptions : mixed
- $enabled : mixed
- $maxHostConnections : mixed
- $mockResponseFactory : mixed
- $scopedClients : mixed
Methods
- __construct() : mixed
- defaultOptions() : DefaultOptionsConfig
- enabled() : $this
- maxHostConnections() : $this
- The maximum number of connections to a single host.
- mockResponseFactory() : $this
- The id of the service that should generate mock responses. It should be either an invokable or an iterable.
- scopedClient() : ScopedClientConfig|$this
- toArray() : array<string|int, mixed>
Properties
$_usedProperties
private
mixed
$_usedProperties
= []
$defaultOptions
private
mixed
$defaultOptions
$enabled
private
mixed
$enabled
$maxHostConnections
private
mixed
$maxHostConnections
$mockResponseFactory
private
mixed
$mockResponseFactory
$scopedClients
private
mixed
$scopedClients
Methods
__construct()
public
__construct([array<string|int, mixed> $value = [] ]) : mixed
Parameters
- $value : array<string|int, mixed> = []
defaultOptions()
public
defaultOptions([array<string|int, mixed> $value = [] ]) : DefaultOptionsConfig
Parameters
- $value : array<string|int, mixed> = []
Return values
DefaultOptionsConfigenabled()
public
enabled(ParamConfigurator|bool $value) : $this
Parameters
- $value : ParamConfigurator|bool
Tags
Return values
$thismaxHostConnections()
The maximum number of connections to a single host.
public
maxHostConnections(ParamConfigurator|int $value) : $this
Parameters
- $value : ParamConfigurator|int
Tags
Return values
$thismockResponseFactory()
The id of the service that should generate mock responses. It should be either an invokable or an iterable.
public
mockResponseFactory(ParamConfigurator|mixed $value) : $this
Parameters
- $value : ParamConfigurator|mixed
Tags
Return values
$thisscopedClient()
public
scopedClient(string $name[, mixed $value = [] ]) : ScopedClientConfig|$this
Parameters
- $name : string
- $value : mixed = []
Return values
ScopedClientConfig|$thistoArray()
public
toArray() : array<string|int, mixed>