Part of twisted.web View Source
This is used by twisted.web.
Future Plans:
Maintainer: Itamar Shtull-Trauring
Function | urlparse | Parse an URL into six components. |
Function | parse_qs | like cgi.parse_qs, only with custom unquote function |
Function | datetimeToString | Convert seconds since epoch to HTTP datetime string. |
Function | datetimeToLogString | Convert seconds since epoch to log datetime string. |
Function | timegm | Convert time tuple in GMT to seconds since epoch, GMT |
Function | stringToDatetime | Convert an HTTP date string (one of three formats) to seconds since epoch. |
Function | toChunk | Convert string to a chunk. |
Function | fromChunk | Convert chunk to string. |
Function | parseContentRange | Parse a content-range header into (start, end, realLength). |
Class | StringTransport | I am a StringIO wrapper that conforms for the transport API. I support |
Class | HTTPClient | A client for HTTP 1.0. |
Class | Request | A HTTP request. |
Class | PotentialDataLoss | PotentialDataLoss
may be raised by a transfer encoding decoder's |
Class | HTTPChannel | A receiver for HTTP requests. |
Class | HTTPFactory | Factory for HTTP server. |
Function | _resetLogDateTime | Undocumented |
Function | _logDateTimeStart | Undocumented |
Function | _logDateTimeStop | Undocumented |
Class | _DataLoss | _DataLoss
indicates that not all of a message body was received. This |
Class | _IdentityTransferDecoder | Protocol for accumulating bytes up to a specified length. This handles the |
Class | _ChunkedTransferDecoder | Protocol for decoding chunked Transfer-Encoding, as defined by RFC 2616, |
This is similar to urlparse.urlparse
, but rejects
unicode
input and always produces str
output.
Parameters | url | (type: str
) |
Returns | The scheme, net location, path, params, query string, and fragment of the URL. (type: six-tuple of str ) | |
Raises | TypeError | The given url was a unicode string instead of a
str .
|
Returns | a tuple of strings representing the chunked encoding of data |
Returns | tuple (result, remaining), may raise ValueError. |
realLength might be None if real length is not known ('*').