Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 1592

Show
Ignore:
Timestamp:
01/11/07 10:44:16
Author:
fumanchu
Message:

Doc work.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/_cprequest.py

    r1565 r1592  
    130130 
    131131class 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    """ 
    133143     
    134144    prev = None 
     
    491501 
    492502class 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    """ 
    494510     
    495511    # Class attributes for dev-time introspection. 
     
    526542     
    527543    def finalize(self): 
    528         """Transform headers (and cookies) into cherrypy.response.header_list.""" 
     544        """Transform headers (and cookies) into self.header_list.""" 
    529545        try: 
    530546            code, reason, _ = http.valid_status(self.status) 
  • trunk/cherrypy/lib/__init__.py

    r1456 r1592  
    7474            return False 
    7575         
    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. 
    7777        try: 
    7878            return modules(o.name) 

Hosted by WebFaction

Log in as guest/cpguest to create tickets