Module t.w.http

Part of twisted.web View Source

HyperText Transfer Protocol implementation.

This is used by twisted.web.

API Stability: stable

Future Plans: Maintainer: Itamar Shtull-Trauring
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 _resetLogDateTime Undocumented
Function _logDateTimeStart Undocumented
Function _logDateTimeStop Undocumented
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 HTTPChannel A receiver for HTTP requests.
Class HTTPFactory Factory for HTTP server.
def parse_qs(qs, keep_blank_values=0, strict_parsing=0, unquote=unquote): (source)
like cgi.parse_qs, only with custom unquote function
def datetimeToString(msSinceEpoch=None): (source)
Convert seconds since epoch to HTTP datetime string.
def datetimeToLogString(msSinceEpoch=None): (source)
Convert seconds since epoch to log datetime string.
def _resetLogDateTime(): (source)
Undocumented
def _logDateTimeStart(): (source)
Undocumented
def _logDateTimeStop(): (source)
Undocumented
def timegm(year, month, day, hour, minute, second): (source)
Convert time tuple in GMT to seconds since epoch, GMT
def stringToDatetime(dateString): (source)
Convert an HTTP date string (one of three formats) to seconds since epoch.
def toChunk(data): (source)
Convert string to a chunk.
Returnsa tuple of strings representing the chunked encoding of data
def fromChunk(data): (source)
Convert chunk to string.
Returnstuple (result, remaining), may raise ValueError.
def parseContentRange(header): (source)

Parse a content-range header into (start, end, realLength).

realLength might be None if real length is not known ('*').
API Documentation for twisted, generated by pydoctor.