Public Member Functions | |
def | __init__ |
def | data_received |
def | finish |
def | headers_received |
def | on_connection_close |
Public Attributes | |
connection | |
delegate | |
request | |
server | |
Private Member Functions | |
def | _cleanup |
Private Attributes | |
_chunks |
Adapts the `HTTPMessageDelegate` interface to the interface expected by our clients.
Definition at line 244 of file httpserver.py.
def tornado.httpserver._ServerRequestAdapter.__init__ | ( | self, | |
server, | |||
connection | |||
) |
Definition at line 248 of file httpserver.py.
def tornado.httpserver._ServerRequestAdapter._cleanup | ( | self | ) | [private] |
Definition at line 292 of file httpserver.py.
def tornado.httpserver._ServerRequestAdapter.data_received | ( | self, | |
chunk | |||
) |
Called when a chunk of data has been received. May return a `.Future` for flow control.
Reimplemented from tornado.httputil.HTTPMessageDelegate.
Definition at line 270 of file httpserver.py.
def tornado.httpserver._ServerRequestAdapter.finish | ( | self | ) |
Called after the last chunk of data has been received.
Reimplemented from tornado.httputil.HTTPMessageDelegate.
Definition at line 276 of file httpserver.py.
def tornado.httpserver._ServerRequestAdapter.headers_received | ( | self, | |
start_line, | |||
headers | |||
) |
Called when the HTTP headers have been received and parsed. :arg start_line: a `.RequestStartLine` or `.ResponseStartLine` depending on whether this is a client or server message. :arg headers: a `.HTTPHeaders` instance. Some `.HTTPConnection` methods can only be called during ``headers_received``. May return a `.Future`; if it does the body will not be read until it is done.
Reimplemented from tornado.httputil.HTTPMessageDelegate.
Definition at line 260 of file httpserver.py.
Called if the connection is closed without finishing the request. If ``headers_received`` is called, either ``finish`` or ``on_connection_close`` will be called, but not both.
Reimplemented from tornado.httputil.HTTPMessageDelegate.
Definition at line 285 of file httpserver.py.
Definition at line 248 of file httpserver.py.
Definition at line 248 of file httpserver.py.
Definition at line 248 of file httpserver.py.
Definition at line 248 of file httpserver.py.
Definition at line 248 of file httpserver.py.