Changeset 1592
- Timestamp:
- 01/11/07 10:44:16
- Files:
-
- trunk/cherrypy/_cprequest.py (modified) (3 diffs)
- trunk/cherrypy/lib/__init__.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/_cprequest.py
r1565 r1592 130 130 131 131 class Request(object): 132 """An HTTP request.""" 132 """An HTTP request. 133 134 This object represents the metadata of an HTTP request message; 135 that is, it contains attributes which describe the environment 136 in which the request URL, headers, and body were sent (if you 137 want tools to interpret the headers and body, those are elsewhere, 138 mostly in Tools). This 'metadata' consists of socket data, 139 transport characteristics, and the Request-Line. This object 140 also contains data regarding the configuration in effect for 141 the given URL, and the execution plan for generating a response. 142 """ 133 143 134 144 prev = None … … 491 501 492 502 class Response(object): 493 """An HTTP Response.""" 503 """An HTTP Response, including status, headers, and body. 504 505 Application developers should use Response.headers (a dict) to 506 set or modify HTTP response headers. When the response is finalized, 507 Response.headers is transformed into Response.header_list as 508 (key, value) tuples. 509 """ 494 510 495 511 # Class attributes for dev-time introspection. … … 526 542 527 543 def finalize(self): 528 """Transform headers (and cookies) into cherrypy.response.header_list."""544 """Transform headers (and cookies) into self.header_list.""" 529 545 try: 530 546 code, reason, _ = http.valid_status(self.status) trunk/cherrypy/lib/__init__.py
r1456 r1592 74 74 return False 75 75 76 # See if the Name is a package or module 76 # See if the Name is a package or module. If it is, import it. 77 77 try: 78 78 return modules(o.name)

