protected function findMetaHeaders(ResponseInterface $response)
    {
        $headerNames = array_keys($response->getHeaders());
        $metaType = $this->objectMetaType();

        return array_filter($headerNames, function ($header) use ($metaType) {
            return strpos($header, 'X-'.$metaType.'-Meta') !== false;
        });
    }
protected function findMetaHeaders(ResponseInterface $response)
    {
        $headerNames = array_keys($response->getHeaders());
        $metaType = $this->objectMetaType();

        return array_filter($headerNames, function ($header) use ($metaType) {
            return strpos($header, 'X-'.$metaType.'-Meta') !== false;
        });
    }
protected function findMetaHeaders ( ResponseInterface $ response ) { $ headerNames = array_keys ( $ response -> getHeaders ( ) ) ; $ metaType = $ this -> objectMetaType ( ) ; return array_filter ( $ headerNames , function ( $ header ) use ( $ metaType ) { return strpos ( $ header , 'X-' . $ metaType . '-Meta' ) !== false ; } ) ; }
Filters meta headers from response.

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

@return array
Filters meta headers from response .