src/FakeRequest.php
private static function parseHeaders(UrlInterface $url): HeaderCollectionInterface
    {
        $result = new HeaderCollection();
        $result->set('Host', $url->getHostAndPort());

        return $result;
    }
private static function parseHeaders(UrlInterface $url): HeaderCollectionInterface
    {
        $result = new HeaderCollection();
        $result->set('Host', $url->getHostAndPort());

        return $result;
    }
private static function parseHeaders ( UrlInterface $ url ) : HeaderCollectionInterface { $ result = new HeaderCollection ( ) ; $ result -> set ( 'Host' , $ url -> getHostAndPort ( ) ) ; return $ result ; }
Parses a url into a header collection.

@param UrlInterface $url The url.

@return HeaderCollectionInterface The header collection.
Parses a url into a header collection .