HttpServerConfigDefinition
final class HttpServerConfigDefinition extends AbstractConfigDefinition (View source)
Builds one composable layer of inbound HTTP server trust 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 inbound HTTP server definitions are collected.
Replaces the exact IP addresses and CIDR networks trusted as immediate proxy peers.
Selects the only forwarding-header family accepted from trusted proxy peers.
Sets whether X-Forwarded-Prefix may be resolved after the proxy trust boundary is established.
Replaces exact hostnames and suffix wildcards approved for request-derived origins.
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 HttpServerConfigDefinition
create()
Creates an empty definition that contributes only explicitly configured values.
moduleKey
static string
moduleKey()
Returns the registry key under which inbound HTTP server definitions are collected.
trustedProxies
HttpServerConfigDefinition
trustedProxies(array $proxies)
Replaces the exact IP addresses and CIDR networks trusted as immediate proxy peers.
forwardedHeaderProfile
HttpServerConfigDefinition
forwardedHeaderProfile(ForwardedHeaderProfile|string $profile)
Selects the only forwarding-header family accepted from trusted proxy peers.
trustForwardedPrefix
HttpServerConfigDefinition
trustForwardedPrefix(bool $trust = true)
Sets whether X-Forwarded-Prefix may be resolved after the proxy trust boundary is established.
allowedHosts
HttpServerConfigDefinition
allowedHosts(array $hosts)
Replaces exact hostnames and suffix wildcards approved for request-derived origins.