class documentation

class twisted.web.client.URI: (source)

View In Hierarchy

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.
Property 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 = (source)

Undocumented

netloc = (source)

Undocumented

host = (source)

Undocumented

port = (source)

Undocumented

path = (source)

Undocumented

params = (source)

Undocumented

query = (source)

Undocumented

fragment = (source)

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
originForm = (source)

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

See Alsohttps://tools.ietf.org/html/draft-ietf-httpbis-p1-messaging-21#section-5.3
(type: bytes)
API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.