![]() |
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 | status |
def | status_message |
def | set_status |
def | has_error |
def | clear |
def | wsgi_write |
def | http_status_message |
Public Attributes | |
out | |
headers | |
Static Public Attributes | |
tuple | http_status_message = staticmethod(http_status_message) |
Abstraction for an HTTP response. Properties: out: file pointer for the output stream headers: wsgiref.headers.Headers instance representing the output headers
def google.appengine.ext.webapp._webapp25.Response.__init__ | ( | self | ) |
Constructs a response with the default settings.
def google.appengine.ext.webapp._webapp25.Response.clear | ( | self | ) |
Clears all data written to the output stream so that it is empty.
def google.appengine.ext.webapp._webapp25.Response.has_error | ( | self | ) |
Indicates whether the response was an error response.
def google.appengine.ext.webapp._webapp25.Response.http_status_message | ( | code | ) |
Returns the default HTTP status message for the given code. Args: code: the HTTP code for which we want a message
def google.appengine.ext.webapp._webapp25.Response.set_status | ( | self, | |
code, | |||
message = None |
|||
) |
Sets the HTTP status code of this response. Args: message: the HTTP status string to use If no status string is given, we use the default from the HTTP/1.1 specification.
def google.appengine.ext.webapp._webapp25.Response.status | ( | self | ) |
Returns current request status code.
def google.appengine.ext.webapp._webapp25.Response.status_message | ( | self | ) |
Returns current request status message.
def google.appengine.ext.webapp._webapp25.Response.wsgi_write | ( | self, | |
start_response | |||
) |
Writes this response using WSGI semantics with the given WSGI function. Args: start_response: the WSGI-compatible start_response function