module documentation

Undocumented

Class KleinResource A ``Resource`` that can do URL routing.
Class URLDecodeError Raised if one or more string parts of the URL could not be decoded.
Function ensure_utf8_bytes Coerces a value which is either a str or bytes to a bytes. If ``v`` is a str object it is encoded as utf-8.
Function extractURLparts Extracts and decodes URI parts from request.
Variable StandInResource Undocumented
Class _StandInResource A standin for a Resource.
def ensure_utf8_bytes(v): (source)

Coerces a value which is either a str or bytes to a bytes. If ``v`` is a str object it is encoded as utf-8.

Parameters
v:Union[str, bytes]Undocumented
Returns
bytesUndocumented
def extractURLparts(request): (source)

Extracts and decodes URI parts from request.

All strings must be UTF8-decodable.

Parameters
request:IRequestA Twisted Web request.
Returns
Tuple[str, str, int, str, str]tuple of the URL scheme, the server name, the server port, the path info and the script name.
Raises
URLDecodeErrorIf one of the parts could not be decoded as UTF-8.
StandInResource = (source)

Undocumented