(self, hostheader=False)
return utils.unparse_url(self.scheme, host, self.port, self.path).encode('ascii')
Returns a URL string, constructed from the Request's URL compnents.

            If hostheader is True, we use the value specified in the request
            Host header to construct the URL.
Returns a URL string, constructed from the Request's URL compnents.
Returns a URL string constructed from the Request s URL compnents .
def get_url(self, hostheader=False):
        """
            Returns a URL string, constructed from the Request's URL compnents.

            If hostheader is True, we use the value specified in the request
            Host header to construct the URL.
        """
        if hostheader:
            host = self.headers.get_first("host") or self.host
        else:
            host = self.host
        host = host.encode("idna")
        return utils.unparse_url(self.scheme, host, self.port, self.path).encode('ascii')
def get_url ( self , hostheader = False ) : if hostheader : host = self . headers . get_first ( "host" ) or self . host else : host = self . host host = host . encode ( "idna" ) return utils . unparse_url ( self . scheme , host , self . port , self . path ) . encode ( 'ascii' )