A URI object.

See Alsohttps://tools.ietf.org/html/draft-ietf-httpbis-p1-messaging-21
Method __init__
Instance Variable scheme Undocumented
Instance Variable netloc Undocumented
Instance Variable host Undocumented
Instance Variable port Undocumented
Instance Variable path Undocumented
Instance Variable params Undocumented
Instance Variable query Undocumented
Instance Variable fragment Undocumented
Class Method fromBytes Parse the given URI into a URI.
Method toBytes Assemble the individual parts of the URI into a fully formed URI.
Method originForm The absolute URI path including URI parameters, query string and fragment identifier.
def __init__(self, scheme, netloc, host, port, path, params, query, fragment): (source)
ParametersschemeURI scheme specifier. (type: bytes)
netlocNetwork location component. (type: bytes)
hostHost name. For IPv6 address literals the brackets are stripped. (type: bytes)
portPort number. (type: int)
pathHierarchical path. (type: bytes)
paramsParameters for last path segment. (type: bytes)
queryQuery string. (type: bytes)
fragmentFragment identifier. (type: bytes)
scheme =
Undocumented
netloc =
Undocumented
host =
Undocumented
port =
Undocumented
path =
Undocumented
params =
Undocumented
query =
Undocumented
fragment =
Undocumented
@classmethod
def fromBytes(cls, uri, defaultPort=None): (source)

Parse the given URI into a URI.

ParametersuriURI to parse. (type: bytes)
defaultPortAn alternate value to use as the port if the URI does not include one. (type: int or None)
ReturnsParsed URI instance. (type: URI)
def toBytes(self): (source)

Assemble the individual parts of the URI into a fully formed URI.

ReturnsA fully formed URI. (type: bytes)
@property
def originForm(self): (source)

The absolute URI path including URI parameters, query string and fragment identifier.

ReturnsThe absolute path in original form. (type: bytes)
See Alsohttps://tools.ietf.org/html/draft-ietf-httpbis-p1-messaging-21#section-5.3
API Documentation for Twisted, generated by pydoctor at 2020-03-20 23:54:06.