Home | Trees | Index | Help |
|
---|
Package twisted :: Package protocols :: Module http |
|
HyperText Transfer Protocol implementation.
This is used by twisted.web.
API Stability: Server HTTP support is semi-stable, client HTTP is unstable.
Future Plans:Classes | |
---|---|
HTTPChannel |
A receiver for HTTP requests. |
HTTPClient |
A client for HTTP 1.0 |
HTTPFactory |
Factory for HTTP server. |
Request |
A HTTP request. |
StringTransport |
I am a StringIO wrapper that conforms for the transport API. |
Function Summary | |
---|---|
_logDateTimeStart()
| |
_logDateTimeStop()
| |
_resetLogDateTime()
| |
Convert seconds since epoch to log datetime string. | |
Convert seconds since epoch to HTTP datetime string. | |
Convert chunk to string. | |
like cgi.parse_qs, only with custom unquote function | |
Parse a content-range header into (start, end, realLength). | |
Convert an HTTP date string to seconds since epoch. | |
Convert time tuple in GMT to seconds since epoch, GMT | |
Convert string to a chunk. |
Variable Summary | |
---|---|
int |
_CONTINUE = 100 |
NoneType |
_logDateTime = None |
int |
_logDateTimeUsers = 0 |
NoneType |
_resetLogDateTimeID = None |
int |
ACCEPTED = 202 |
int |
BAD_GATEWAY = 502 |
int |
BAD_REQUEST = 400 |
str |
CACHED = 'Magic constant returned by http.Request method...
|
int |
CONFLICT = 409 |
int |
CREATED = 201 |
int |
EXPECTATION_FAILED = 417 |
int |
FORBIDDEN = 403 |
int |
FOUND = 302 |
int |
GATEWAY_TIMEOUT = 504 |
int |
GONE = 410 |
int |
HTTP_VERSION_NOT_SUPPORTED = 505 |
int |
INSUFFICIENT_STORAGE_SPACE = 507 |
int |
INTERNAL_SERVER_ERROR = 500 |
int |
LENGTH_REQUIRED = 411 |
list |
monthname = [None, 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'J...
|
int |
MOVED_PERMANENTLY = 301 |
int |
MULTI_STATUS = 207 |
int |
MULTIPLE_CHOICE = 300 |
tuple |
NO_BODY_CODES = (204, 304)
|
int |
NO_CONTENT = 204 |
int |
NON_AUTHORITATIVE_INFORMATION = 203 |
int |
NOT_ACCEPTABLE = 406 |
int |
NOT_ALLOWED = 405 |
int |
NOT_EXTENDED = 510 |
int |
NOT_FOUND = 404 |
int |
NOT_IMPLEMENTED = 501 |
int |
NOT_MODIFIED = 304 |
int |
OK = 200 |
int |
PARTIAL_CONTENT = 206 |
int |
PAYMENT_REQUIRED = 402 |
int |
PRECONDITION_FAILED = 412 |
str |
protocol_version = 'HTTP/1.1'
|
int |
PROXY_AUTH_REQUIRED = 407 |
int |
REQUEST_ENTITY_TOO_LARGE = 413 |
int |
REQUEST_TIMEOUT = 408 |
int |
REQUEST_URI_TOO_LONG = 414 |
int |
REQUESTED_RANGE_NOT_SATISFIABLE = 416 |
int |
RESET_CONTENT = 205 |
dict |
RESPONSES = {400: 'Bad Request', 401: 'Unauthorized', 40...
|
dict |
responses = {400: 'Bad Request', 401: 'Unauthorized', 40...
|
int |
SEE_OTHER = 303 |
int |
SERVICE_UNAVAILABLE = 503 |
int |
SWITCHING = 101 |
int |
TEMPORARY_REDIRECT = 307 |
int |
UNAUTHORIZED = 401 |
int |
UNSUPPORTED_MEDIA_TYPE = 415 |
int |
USE_PROXY = 305 |
list |
weekdayname = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat',...
|
Function Details |
---|
datetimeToLogString(msSinceEpoch=None)Convert seconds since epoch to log datetime string. |
datetimeToString(msSinceEpoch=None)Convert seconds since epoch to HTTP datetime string. |
fromChunk(data)Convert chunk to string.
|
parse_qs(qs, keep_blank_values=0, strict_parsing=0, unquote=<Fake twisted.protocols._c_urlarg.unquote>)like cgi.parse_qs, only with custom unquote function |
parseContentRange(header)Parse a content-range header into (start, end, realLength). realLength might be None if real length is not known ('*'). |
stringToDatetime(dateString)Convert an HTTP date string to seconds since epoch. |
timegm(year, month, day, hour, minute, second)Convert time tuple in GMT to seconds since epoch, GMT |
toChunk(data)Convert string to a chunk.
|
Variable Details |
---|
_CONTINUE
|
_logDateTime
|
_logDateTimeUsers
|
_resetLogDateTimeID
|
ACCEPTED
|
BAD_GATEWAY
|
BAD_REQUEST
|
CACHED
|
CONFLICT
|
CREATED
|
EXPECTATION_FAILED
|
FORBIDDEN
|
FOUND
|
GATEWAY_TIMEOUT
|
GONE
|
HTTP_VERSION_NOT_SUPPORTED
|
INSUFFICIENT_STORAGE_SPACE
|
INTERNAL_SERVER_ERROR
|
LENGTH_REQUIRED
|
monthname
|
MOVED_PERMANENTLY
|
MULTI_STATUS
|
MULTIPLE_CHOICE
|
NO_BODY_CODES
|
NO_CONTENT
|
NON_AUTHORITATIVE_INFORMATION
|
NOT_ACCEPTABLE
|
NOT_ALLOWED
|
NOT_EXTENDED
|
NOT_FOUND
|
NOT_IMPLEMENTED
|
NOT_MODIFIED
|
OK
|
PARTIAL_CONTENT
|
PAYMENT_REQUIRED
|
PRECONDITION_FAILED
|
protocol_version
|
PROXY_AUTH_REQUIRED
|
REQUEST_ENTITY_TOO_LARGE
|
REQUEST_TIMEOUT
|
REQUEST_URI_TOO_LONG
|
REQUESTED_RANGE_NOT_SATISFIABLE
|
RESET_CONTENT
|
responses
|
SEE_OTHER
|
SERVICE_UNAVAILABLE
|
SWITCHING
|
TEMPORARY_REDIRECT
|
UNAUTHORIZED
|
UNSUPPORTED_MEDIA_TYPE
|
USE_PROXY
|
weekdayname
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat May 15 20:08:12 2004 | http://epydoc.sf.net |