~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to www/dispatch/request.py

  • Committer: mattgiuca
  • Date: 2008-01-09 06:53:05 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:142
dispatch.request: Added headers_in and headers_out as readable (and
modifiable, in the case of headers_out) members of the class.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
        username (read)
46
46
            String. Login name of the user who is currently logged in, or
47
47
            None.
 
48
        headers_in (read)
 
49
            Table object representing headers sent by the client.
 
50
        headers_out (read, can be written to)
 
51
            Table object representing headers to be sent to the client.
48
52
 
49
53
        status (write)
50
54
            Int. Response status number. Use one of the status codes defined
150
154
        (self.app, self.path) = (
151
155
            common.util.split_path(common.util.unmake_path(req.uri)))
152
156
        self.username = None
 
157
        self.headers_in = req.headers_in
 
158
        self.headers_out = req.headers_out
153
159
 
154
160
        # Default values for the output members
155
161
        self.status = Request.OK