Package cherrypy :: Module _cprequest
[hide private]
[frames] | no frames]

Module _cprequest

source code

Classes [hide private]
  Hook
A callback and its metadata: failsafe, priority, and kwargs.
  HookMap
A map of call points to lists of callbacks (Hook objects).
  Request
An HTTP request.
  Body
The body of the HTTP response (the response entity).
  Response
An HTTP Response, including status, headers, and body.
Functions [hide private]
 
hooks_namespace(k, v)
Attach bare hooks declared in config.
source code
 
request_namespace(k, v)
Attach request attributes declared in config.
source code
 
response_namespace(k, v)
Attach response attributes declared in config.
source code
 
error_page_namespace(k, v)
Attach error pages declared in config.
source code
 
file_generator(input, chunkSize=65536)
Yield the given input (a file object) in chunks (default 64k).
source code
Variables [hide private]
  hookpoints = ['on_start_resource', 'before_request_body', 'bef...
Function Details [hide private]

file_generator(input, chunkSize=65536)

source code 
Yield the given input (a file object) in chunks (default 64k). (Core)

Variables Details [hide private]

hookpoints

Value:
['on_start_resource',
 'before_request_body',
 'before_handler',
 'before_finalize',
 'on_end_resource',
 'on_end_request',
 'before_error_response',
 'after_error_response']