Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes | Static Public Attributes
MoinMoin.web.request.Request Class Reference
Inheritance diagram for MoinMoin.web.request.Request:
Inheritance graph
[legend]
Collaboration diagram for MoinMoin.web.request.Request:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def in_data
def in_headers

Public Attributes

 href
 abs_href
 response
 status_code

Static Public Attributes

 charset = config.charset
string encoding_errors = 'replace'
string default_mimetype = 'text/html'
 given_config = None
 headers = None
 in_stream = RequestBase.stream

Detailed Description

A full featured Request/Response object.

To better distinguish incoming and outgoing data/headers,
incoming versions are prefixed with 'in_' in contrast to
original Werkzeug implementation.

Definition at line 26 of file request.py.


Constructor & Destructor Documentation

def MoinMoin.web.request.Request.__init__ (   self,
  environ,
  populate_request = True,
  shallow = False 
)

Definition at line 41 of file request.py.

00041 
00042     def __init__(self, environ, populate_request=True, shallow=False):
00043         ResponseBase.__init__(self)
00044         RequestBase.__init__(self, environ, populate_request, shallow)
00045         self.href = Href(self.script_root or '/', self.charset)
00046         self.abs_href = Href(self.url_root, self.charset)
00047         self.headers = Headers([('Content-Type', 'text/html')])
00048         self.response = []
00049         self.status_code = 200


Member Function Documentation

Definition at line 53 of file request.py.

00053 
00054     def in_data(self):
00055         return self.in_stream.read()

Definition at line 57 of file request.py.

00057 
00058     def in_headers(self):
00059         return EnvironHeaders(self.environ)
00060 


Member Data Documentation

Definition at line 45 of file request.py.

Definition at line 33 of file request.py.

string MoinMoin.web.request.Request.default_mimetype = 'text/html' [static]

Definition at line 35 of file request.py.

string MoinMoin.web.request.Request.encoding_errors = 'replace' [static]

Definition at line 34 of file request.py.

Definition at line 36 of file request.py.

Definition at line 39 of file request.py.

Definition at line 44 of file request.py.

MoinMoin.web.request.Request.in_stream = RequestBase.stream [static]

Definition at line 50 of file request.py.

Definition at line 47 of file request.py.

Definition at line 48 of file request.py.


The documentation for this class was generated from the following file: