#NEWLINE# def request_url( self , request , proxies ) : #NEWLINE# #INDENT# 'Obtain the url to use when making the final request.\n\n        If the message is being sent through a HTTP proxy, the full URL has to\n        be used. Otherwise, we should only use the path portion of the URL.\n\n        This should not be called from user code, and is only exposed for use\n        when subclassing the\n        :class:`HTTPAdapter <requests.adapters.HTTPAdapter>`.\n\n        :param request: The :class:`PreparedRequest <PreparedRequest>` being sent.\n        :param proxies: A dictionary of schemes or schemes and hosts to proxy URLs.\n        ' #NEWLINE# proxy = select_proxy ( request . url , proxies ) #NEWLINE# scheme = urlparse ( request . url ) . scheme #NEWLINE# if ( url and ( scheme != 'https' ) ) : #NEWLINE# #INDENT# url = urldefragauth ( request . url ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# url = request . path_url #NEWLINE# #UNINDENT# return url