Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
pip._vendor.urllib3.util.url.Url Class Reference
Inheritance diagram for pip._vendor.urllib3.util.url.Url:
Inheritance graph
[legend]
Collaboration diagram for pip._vendor.urllib3.util.url.Url:
Collaboration graph
[legend]

Public Member Functions

 __new__ (cls, scheme=None, auth=None, host=None, port=None, path=None, query=None, fragment=None)
 
 hostname (self)
 
 request_uri (self)
 
 netloc (self)
 
 url (self)
 
 __str__ (self)
 

Public Attributes

 host
 
 port
 

Detailed Description

Data structure for representing an HTTP URL. Used as a return value for
:func:`parse_url`. Both the scheme and host are normalized as they are
both case-insensitive according to RFC 3986.

Member Function Documentation

◆ hostname()

pip._vendor.urllib3.util.url.Url.hostname (   self)
For backwards-compatibility with urlparse. We're nice like that.

◆ netloc()

pip._vendor.urllib3.util.url.Url.netloc (   self)
Network location including host and port

◆ request_uri()

pip._vendor.urllib3.util.url.Url.request_uri (   self)
Absolute path including the query string.

◆ url()

pip._vendor.urllib3.util.url.Url.url (   self)
Convert self into a url

This function should more or less round-trip with :func:`.parse_url`. The
returned url may not be exactly the same as the url inputted to
:func:`.parse_url`, but it should be equivalent by the RFC (e.g., urls
with a blank port will have : removed).

Example: ::

    >>> U = parse_url('http://google.com/mail/')
    >>> U.url
    'http://google.com/mail/'
    >>> Url('http', 'username:password', 'host.com', 80,
    ... '/path', 'query', 'fragment').url
    'http://username:password@host.com:80/path?query#fragment'

The documentation for this class was generated from the following file: