PPA.HTTP.Base
index
/home/ods/SF-PPA/homepage/API/PPA/HTTP/Base.py

Define base classes HeadersRequestResponseAdapter

 
Modules
       
logging

 
Classes
       
Adapter
Headers
Request
Response

 
class Adapter
     Methods defined here:
__call__(self, request, response)

 
class Headers
    Dictionary-like object of HTTP headers with case insensitive key lookup
and add() method. The order of headers is preserved.
 
  Methods defined here:
__delitem__(self, key)
Delete all headers with this key. Never fail.
__getitem__(self, key)
Get header. If there are several header with the same key, their
values are joined.
__init__(self, data={})
__iter__(self)
__len__(self)
__setitem__(self, key, value)
Replace headers with the same key.
__str__(self)
add(self, key, value)
has_key(self, key)
keys(self)

 
class Request
     Methods defined here:
__init__(self, headers, fp, path_info='')
query(self)
read(self, *args)
readline(self, *args)
scheme(self)
version(self)

 
class Response
     Methods defined here:
__init__(self, request, fp, buffered=1)
close(self)
flush(self)
setBuffered(self, value)
setContentType(self, mime_type, charset=None, errors=None)
setStatus(self, status)
write(self, data)

Data and other attributes defined here:
charset = 'ascii'
charsetErrors = 'replace'
charsetErrorsByType = {'text/html': 'xmlcharrefreplace', 'text/sgml': 'xmlcharrefreplace', 'text/xml': 'xmlcharrefreplace'}
statusCodes = {100: 'Continue', 101: 'Switching Protocols', 200: 'OK', 201: 'Created', 202: 'Accepted', 203: 'Non-Authoritative Information', 204: 'No Content', 205: 'Reset Content', 206: 'Partial Content', 300: 'Multiple Choices', ...}

 
Data
        logger = <logging.Logger instance>