final class ResponseHeaders (View source)

Framing, content-type sniffing and referrer headers sent on every response; Kernel::boot() calls send() once per process.

Constants

private ORIGIN_PATTERN

Methods

static array
build(array $origins)

No description

static void
send(ConfigurationInterface $config, LoggerInterface $logger)

No description

static void
sendDefaults()

The default deny set, for a failure before send() ran; afterwards it must not override the configured set.

static void
resetForTests()

No description

Details

static array build(array $origins)

No description

Parameters

array $origins

configured values; anything but a valid origin is dropped

Return Value

array

static void send(ConfigurationInterface $config, LoggerInterface $logger)

No description

Parameters

ConfigurationInterface $config
LoggerInterface $logger

Return Value

void

static void sendDefaults()

The default deny set, for a failure before send() ran; afterwards it must not override the configured set.

Return Value

void

static void resetForTests()

No description

Return Value

void