Milliner/src/Service/MillinerService.php
protected function getLinkHeader($response, $rel_name, $type = null)
    {
        $parsed = Psr7\parse_header($response->getHeader("Link"));
        foreach ($parsed as $header) {
            $has_relation = isset($header['rel']) && $header['rel'] == $rel_name;
            $has_type = $type ? isset($header['type']) && $header['type'] == $type : true;
            if ($has_type && $has_relation) {
                return trim($header[0], '<>');
            }
        }
        return null;
    }
protected function getLinkHeader($response, $rel_name, $type = null)
    {
        $parsed = Psr7\parse_header($response->getHeader("Link"));
        foreach ($parsed as $header) {
            $has_relation = isset($header['rel']) && $header['rel'] == $rel_name;
            $has_type = $type ? isset($header['type']) && $header['type'] == $type : true;
            if ($has_type && $has_relation) {
                return trim($header[0], '<>');
            }
        }
        return null;
    }
protected function getLinkHeader ( $ response , $ rel_name , $ type = null ) { $ parsed = Psr7 \ parse_header ( $ response -> getHeader ( "Link" ) ) ; foreach ( $ parsed as $ header ) { $ has_relation = isset ( $ header [ 'rel' ] ) && $ header [ 'rel' ] == $ rel_name ; $ has_type = $ type ? isset ( $ header [ 'type' ] ) && $ header [ 'type' ] == $ type : true ; if ( $ has_type && $ has_relation ) { return trim ( $ header [ 0 ] , '<>' ) ; } } return null ; }
Gets a Link header with the supplied rel name.

@param $response
@param $rel_name

@return null|string
Gets a Link header with the supplied rel name .