Sets the request's URL and returns the request itself.
        Automatically sets the Host header according to the URL.

        Keyword arguments:
        url -- a string representing the URL the set for the request

def with_url(self, url):
        """Sets the request's URL and returns the request itself.
        Automatically sets the Host header according to the URL.

        Keyword arguments:
        url -- a string representing the URL the set for the request
        """
        self.url = URL(url)
        self.header["Host"] = self.url.host
        return self