src/Middleware/GlideMiddleware.php
protected function _withCustomHeaders($response)
    {
        foreach ((array)$this->getConfig('headers') as $key => $value) {
            $response = $response->withHeader($key, $value);
        }

        return $response;
    }
protected function _withCustomHeaders($response)
    {
        foreach ((array)$this->getConfig('headers') as $key => $value) {
            $response = $response->withHeader($key, $value);
        }

        return $response;
    }
protected function _withCustomHeaders ( $ response ) { foreach ( ( array ) $ this -> getConfig ( 'headers' ) as $ key => $ value ) { $ response = $ response -> withHeader ( $ key , $ value ) ; } return $ response ; }
Return response instance with headers specified in config.

@param \Psr\Http\Message\ResponseInterface $response The response.

@return \Psr\Http\Message\ResponseInterface
Return response instance with headers specified in config .