public function setExposedHeaders(array $headers): self
    {
        // Optional: from #7.1.1 'simple response headers' will be available in any case so it does not
        // make sense to include those headers to exposed.
        $filtered = [];
        foreach ($headers as $header) {
            if (\in_array(\strtolower($header), static::SIMPLE_LC_RESPONSE_HEADERS) === false) {
                $filtered[] = $header;
            }
        }

        $this->exposedHeadersList = \implode(', ', $filtered);

        return $this;
    }
public function setExposedHeaders(array $headers): self
    {
        // Optional: from #7.1.1 'simple response headers' will be available in any case so it does not
        // make sense to include those headers to exposed.
        $filtered = [];
        foreach ($headers as $header) {
            if (\in_array(\strtolower($header), static::SIMPLE_LC_RESPONSE_HEADERS) === false) {
                $filtered[] = $header;
            }
        }

        $this->exposedHeadersList = \implode(', ', $filtered);

        return $this;
    }
public function setExposedHeaders ( array $ headers ) : self { // Optional: from #7.1.1 'simple response headers' will be available in any case so it does not // make sense to include those headers to exposed. $ filtered = [ ] ; foreach ( $ headers as $ header ) { if ( \ in_array ( \ strtolower ( $ header ) , static :: SIMPLE_LC_RESPONSE_HEADERS ) === false ) { $ filtered [ ] = $ header ; } } $ this -> exposedHeadersList = \ implode ( ', ' , $ filtered ) ; return $ this ; }
Set headers other than the simple ones that might be exposed to user agent.

@param array $headers

@return Settings
Set headers other than the simple ones that might be exposed to user agent .