HttpClientConfigDefinition
final class HttpClientConfigDefinition extends AbstractConfigDefinition (View source)
Builds one composable layer of outbound HTTP client configuration.
Properties
| protected mixed[] | $data | from AbstractConfigDefinition |
Methods
Replaces one configuration value at a dot-separated path.
Appends one configuration value at a dot-separated list path.
Creates an empty definition that contributes only explicitly configured values.
Returns the registry key under which HTTP client definitions are collected.
Sets the total request timeout in seconds.
Sets the connection-establishment timeout in seconds.
Sets whether the selected client transport verifies peer TLS certificates.
Details
toArray
array
toArray()
No description
set
protected AbstractConfigDefinition
set(string $path, mixed $value)
Replaces one configuration value at a dot-separated path.
append
protected AbstractConfigDefinition
append(string $path, mixed $value)
Appends one configuration value at a dot-separated list path.
create
static HttpClientConfigDefinition
create()
Creates an empty definition that contributes only explicitly configured values.
moduleKey
static string
moduleKey()
Returns the registry key under which HTTP client definitions are collected.
timeout
HttpClientConfigDefinition
timeout(float|int $seconds)
Sets the total request timeout in seconds.
connectTimeout
HttpClientConfigDefinition
connectTimeout(float|int $seconds)
Sets the connection-establishment timeout in seconds.
verifySsl
HttpClientConfigDefinition
verifySsl(bool $verifySsl = true)
Sets whether the selected client transport verifies peer TLS certificates.