Neos\Flow\Http\Component\TrustedProxiesComponent::getFirstTrustedProxyHeaderValue PHP Метод

getFirstTrustedProxyHeaderValue() защищенный Метод

Convenience getter for the first value of a given trusted proxy header.
protected getFirstTrustedProxyHeaderValue ( string $type, Request $request ) : mixed | null
$type string One of the HEADER_* constants
$request Neos\Flow\Http\Request The request to get the trusted proxy header from
Результат mixed | null The first value of this header type or NULL if this header type should not be trusted
    protected function getFirstTrustedProxyHeaderValue($type, Request $request)
    {
        $values = $this->getTrustedProxyHeaderValues($type, $request)->current();
        return $values !== null ? reset($values) : null;
    }