Package circuits :: Package lib :: Package web :: Module webob :: Class Request

Class Request

object --+
         |
        Request

Creates a new Request object to hold information about a request.

Instance Methods
 
__init__(self, sock, method, scheme, path, protocol, qs)
initializes x; see x.__class__.__doc__ for signature
 
__repr__(self)
repr(x)

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  server = None
A reference to the underlying server
  scheme = 'http'
  protocol = (1, 1)
  server_protocol = (1, 1)
  host = ''
  local = Host('127.0.0.1', 80, '127.0.0.1')
  remote = Host('127.0.0.1', 1111, '127.0.0.1')
  index = None
hash(x)
  script_name = ''
  login = None
hash(x)
Properties
  headers

Inherited from object: __class__

Method Details

__init__(self, sock, method, scheme, path, protocol, qs)
(Constructor)

 

initializes x; see x.__class__.__doc__ for signature

Parameters:
  • sock (socket.socket) - The socket object of the request.
  • method (str) - The requsted method.
  • scheme (str) - The requsted scheme.
  • path (str) - The requsted path.
  • protocol (str) - The requsted protocol.
  • qs (str) - The query string of the request.
Overrides: object.__init__

__repr__(self)
(Representation operator)

 

repr(x)

Overrides: object.__repr__
(inherited documentation)

Property Details

headers

Get Method:
_getHeaders(self)
Set Method:
_setHeaders(self, headers)