Public Member Functions | |
| def | __init__ |
| def | finish |
| def | set_close_callback |
| def | write |
| def | write_headers |
Public Attributes | |
| context | |
| method | |
| start_response | |
Private Attributes | |
| _error | |
| _expected_content_remaining | |
| _finished | |
| _write_buffer | |
| def tornado.wsgi._WSGIConnection.__init__ | ( | self, | |
| method, | |||
| start_response, | |||
| context | |||
| ) |
| def tornado.wsgi._WSGIConnection.finish | ( | self | ) |
Indicates that the last body data has been written.
Reimplemented from tornado.httputil.HTTPConnection.
| def tornado.wsgi._WSGIConnection.set_close_callback | ( | self, | |
| callback | |||
| ) |
| def tornado.wsgi._WSGIConnection.write | ( | self, | |
| chunk, | |||
callback = None |
|||
| ) |
Writes a chunk of body data. The callback will be run when the write is complete. If no callback is given, returns a Future.
Reimplemented from tornado.httputil.HTTPConnection.
| def tornado.wsgi._WSGIConnection.write_headers | ( | self, | |
| start_line, | |||
| headers, | |||
chunk = None, |
|||
callback = None |
|||
| ) |
Write an HTTP header block.
:arg start_line: a `.RequestStartLine` or `.ResponseStartLine`.
:arg headers: a `.HTTPHeaders` instance.
:arg chunk: the first (optional) chunk of data. This is an optimization
so that small responses can be written in the same call as their
headers.
:arg callback: a callback to be run when the write is complete.
Returns a `.Future` if no callback is given.
Reimplemented from tornado.httputil.HTTPConnection.
tornado::wsgi._WSGIConnection::_error [private] |
tornado::wsgi._WSGIConnection::_finished [private] |