![]() |
App Engine Python SDK
v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
|
Public Member Functions | |
def | __init__ |
def | SetResponse |
def | header_data |
Public Attributes | |
status_code | |
status_message | |
large_response | |
headers | |
body | |
Development appserver response object. Object used to hold the full appserver response. Used as a container that is passed through the request rewrite chain and ultimately sent to the web client. Attributes: status_code: Integer HTTP response status (e.g., 200, 302, 404, 500) status_message: String containing an informational message about the response code, possibly derived from the 'status' header, if supplied. headers: mimetools.Message containing the HTTP headers of the response. body: File-like object containing the body of the response. large_response: Indicates that response is permitted to be larger than MAX_RUNTIME_RESPONSE_SIZE.
def google.appengine.tools.old_dev_appserver.AppServerResponse.__init__ | ( | self, | |
response_file = None , |
|||
kwds | |||
) |
Initializer. Args: response_file: A file-like object that contains the full response generated by the user application request handler. If present the headers and body are set from this value, although the values may be further overridden by the keyword parameters. kwds: All keywords are mapped to attributes of AppServerResponse.
def google.appengine.tools.old_dev_appserver.AppServerResponse.header_data | ( | self | ) |
Get header data as a string. Returns: String representation of header with line breaks cleaned up.
def google.appengine.tools.old_dev_appserver.AppServerResponse.SetResponse | ( | self, | |
response_file | |||
) |
Sets headers and body from the response file. Args: response_file: File like object to set body and headers from.