class documentation

class URI: (source)

View In Hierarchy

A URI object.
See Also
https://tools.ietf.org/html/draft-ietf-httpbis-p1-messaging-21
Class Method fromBytes Parse the given URI into a URI.
Method __init__
Method toBytes Assemble the individual parts of the URI into a fully formed URI.
Instance Variable fragment Undocumented
Instance Variable host Undocumented
Instance Variable netloc Undocumented
Instance Variable params Undocumented
Instance Variable path Undocumented
Instance Variable port Undocumented
Instance Variable query Undocumented
Instance Variable scheme Undocumented
Property originForm The absolute URI path including URI parameters, query string and fragment identifier.
@classmethod
def fromBytes(cls, uri, defaultPort=None): (source)
Parse the given URI into a URI.
Parameters
uri:bytesURI to parse.
defaultPort:int or NoneAn alternate value to use as the port if the URI does not include one.
Returns
URIParsed URI instance.
def __init__(self, scheme, netloc, host, port, path, params, query, fragment): (source)
Parameters
scheme:bytesURI scheme specifier.
netloc:bytesNetwork location component.
host:bytesHost name. For IPv6 address literals the brackets are stripped.
port:intPort number.
path:bytesHierarchical path.
params:bytesParameters for last path segment.
query:bytesQuery string.
fragment:bytesFragment identifier.
def toBytes(self): (source)
Assemble the individual parts of the URI into a fully formed URI.
Returns
bytesA fully formed URI.
fragment = (source)

Undocumented

host = (source)

Undocumented

netloc = (source)

Undocumented

params = (source)

Undocumented

path = (source)

Undocumented

port = (source)

Undocumented

query = (source)

Undocumented

scheme = (source)

Undocumented

@property
originForm: bytes = (source)
The absolute URI path including URI parameters, query string and fragment identifier.
See Also
https://tools.ietf.org/html/draft-ietf-httpbis-p1-messaging-21#section-5.3