Public Member Functions | |
def | finish |
def | write |
def | write_headers |
Applications use this interface to write their responses. .. versionadded:: 4.0
Definition at line 531 of file httputil.py.
def tornado.httputil.HTTPConnection.finish | ( | self | ) |
Indicates that the last body data has been written.
Reimplemented in tornado.http1connection.HTTP1Connection, and tornado.wsgi._WSGIConnection.
Definition at line 558 of file httputil.py.
def tornado.httputil.HTTPConnection.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 in tornado.http1connection.HTTP1Connection, and tornado.wsgi._WSGIConnection.
Definition at line 550 of file httputil.py.
def tornado.httputil.HTTPConnection.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 in tornado.http1connection.HTTP1Connection, and tornado.wsgi._WSGIConnection.
Definition at line 536 of file httputil.py.