SYMBOL INDEX (3471 symbols across 101 files) FILE: demos/blog/blog.py class NoResultError (line 37) | class NoResultError(Exception): function maybe_create_tables (line 41) | async def maybe_create_tables(db): class Application (line 53) | class Application(tornado.web.Application): method __init__ (line 54) | def __init__(self, db): class BaseHandler (line 79) | class BaseHandler(tornado.web.RequestHandler): method row_to_obj (line 80) | def row_to_obj(self, row, cur): method execute (line 87) | async def execute(self, stmt, *args): method query (line 95) | async def query(self, stmt, *args): method queryone (line 110) | async def queryone(self, stmt, *args): method prepare (line 123) | async def prepare(self): method any_author_exists (line 132) | async def any_author_exists(self): method redirect_to_next (line 135) | def redirect_to_next(self): class HomeHandler (line 144) | class HomeHandler(BaseHandler): method get (line 145) | async def get(self): class EntryHandler (line 155) | class EntryHandler(BaseHandler): method get (line 156) | async def get(self, slug): class ArchiveHandler (line 163) | class ArchiveHandler(BaseHandler): method get (line 164) | async def get(self): class FeedHandler (line 169) | class FeedHandler(BaseHandler): method get (line 170) | async def get(self): class ComposeHandler (line 178) | class ComposeHandler(BaseHandler): method get (line 180) | async def get(self): method post (line 188) | async def post(self): class AuthCreateHandler (line 233) | class AuthCreateHandler(BaseHandler): method get (line 234) | def get(self): method post (line 237) | async def post(self): class AuthLoginHandler (line 257) | class AuthLoginHandler(BaseHandler): method get (line 258) | async def get(self): method post (line 265) | async def post(self): class AuthLogoutHandler (line 286) | class AuthLogoutHandler(BaseHandler): method get (line 287) | def get(self): class EntryModule (line 292) | class EntryModule(tornado.web.UIModule): method render (line 293) | def render(self, entry): function main (line 297) | async def main(): FILE: demos/blog/schema.sql type authors (line 24) | CREATE TABLE authors ( type entries (line 32) | CREATE TABLE entries ( type entries (line 43) | CREATE INDEX ON entries (published) FILE: demos/chat/chatdemo.py class MessageBuffer (line 28) | class MessageBuffer: method __init__ (line 29) | def __init__(self): method get_messages_since (line 35) | def get_messages_since(self, cursor): method add_message (line 48) | def add_message(self, message): class MainHandler (line 59) | class MainHandler(tornado.web.RequestHandler): method get (line 60) | def get(self): class MessageNewHandler (line 64) | class MessageNewHandler(tornado.web.RequestHandler): method post (line 67) | def post(self): class MessageUpdatesHandler (line 85) | class MessageUpdatesHandler(tornado.web.RequestHandler): method post (line 91) | async def post(self): method on_connection_close (line 107) | def on_connection_close(self): function main (line 111) | async def main(): FILE: demos/chat/static/chat.js function newMessage (line 34) | function newMessage(form) { function getCookie (line 49) | function getCookie(name) { FILE: demos/facebook/facebook.py class Application (line 28) | class Application(tornado.web.Application): method __init__ (line 29) | def __init__(self): class BaseHandler (line 50) | class BaseHandler(tornado.web.RequestHandler): method get_current_user (line 51) | def get_current_user(self): class MainHandler (line 58) | class MainHandler(BaseHandler, tornado.auth.FacebookGraphMixin): method get (line 60) | async def get(self): class AuthLoginHandler (line 71) | class AuthLoginHandler(BaseHandler, tornado.auth.FacebookGraphMixin): method get (line 72) | async def get(self): class AuthLogoutHandler (line 91) | class AuthLogoutHandler(BaseHandler, tornado.auth.FacebookGraphMixin): method get (line 92) | def get(self): class PostModule (line 97) | class PostModule(tornado.web.UIModule): method render (line 98) | def render(self, post): function main (line 102) | async def main(): FILE: demos/file_upload/file_receiver.py class POSTHandler (line 19) | class POSTHandler(tornado.web.RequestHandler): method post (line 20) | def post(self): class PUTHandler (line 33) | class PUTHandler(tornado.web.RequestHandler): method initialize (line 34) | def initialize(self): method data_received (line 37) | def data_received(self, chunk): method put (line 40) | def put(self, filename): function make_app (line 47) | def make_app(): function main (line 51) | async def main(): FILE: demos/file_upload/file_uploader.py function multipart_producer (line 26) | async def multipart_producer(boundary, filenames, write): function post (line 57) | async def post(filenames): function raw_producer (line 72) | async def raw_producer(filename, write): function put (line 84) | async def put(filenames): FILE: demos/google_auth/main.py class BaseHandler (line 32) | class BaseHandler(tornado.web.RequestHandler): method get_current_user (line 33) | def get_current_user(self): class IndexHandler (line 40) | class IndexHandler(BaseHandler, tornado.auth.GoogleOAuth2Mixin): method get (line 42) | async def get(self): class LoginHandler (line 58) | class LoginHandler(BaseHandler, tornado.auth.GoogleOAuth2Mixin): method get (line 59) | async def get(self): class LogoutHandler (line 86) | class LogoutHandler(BaseHandler): method get (line 87) | def get(self): function main (line 92) | async def main(): FILE: demos/helloworld/helloworld.py class MainHandler (line 25) | class MainHandler(tornado.web.RequestHandler): method get (line 26) | def get(self): function main (line 30) | async def main(): FILE: demos/tcpecho/client.py function send_message (line 12) | async def send_message(): FILE: demos/tcpecho/server.py class EchoServer (line 14) | class EchoServer(TCPServer): method handle_stream (line 16) | def handle_stream(self, stream, address): function main (line 31) | async def main(): FILE: demos/websocket/chatdemo.py class Application (line 32) | class Application(tornado.web.Application): method __init__ (line 33) | def __init__(self): class MainHandler (line 44) | class MainHandler(tornado.web.RequestHandler): method get (line 45) | def get(self): class ChatSocketHandler (line 49) | class ChatSocketHandler(tornado.websocket.WebSocketHandler): method get_compression_options (line 54) | def get_compression_options(self): method open (line 58) | def open(self): method on_close (line 61) | def on_close(self): method update_cache (line 65) | def update_cache(cls, chat): method send_updates (line 71) | def send_updates(cls, chat): method on_message (line 79) | def on_message(self, message): function main (line 91) | async def main(): FILE: demos/websocket/static/chat.js function newMessage (line 33) | function newMessage(form) { FILE: demos/webspider/webspider.py function get_links_from_url (line 16) | async def get_links_from_url(url): function remove_fragment (line 30) | def remove_fragment(url): function get_links (line 35) | def get_links(html): function main (line 51) | async def main(): FILE: docs/conf.py function missing_reference_handler (line 139) | def missing_reference_handler(app, env, node, contnode): function setup (line 144) | def setup(app): FILE: maint/benchmark/benchmark.py class RootHandler (line 41) | class RootHandler(RequestHandler): method get (line 42) | def get(self): method _log (line 45) | def _log(self): function main (line 49) | def main(): function run (line 55) | async def run(): FILE: maint/benchmark/chunk_benchmark.py class ChunkHandler (line 22) | class ChunkHandler(RequestHandler): method get (line 23) | def get(self): function main (line 30) | def main(): FILE: maint/benchmark/gen_benchmark.py function e2 (line 21) | def e2(callback): function e1 (line 26) | def e1(): function c2 (line 32) | def c2(): function c1 (line 37) | def c1(): function main (line 42) | def main(): FILE: maint/benchmark/parsing_benchmark.py function headers_split_re (line 30) | def headers_split_re(headers: str) -> None: function headers_split_simple (line 35) | def headers_split_simple(headers: str) -> None: function headers_parse_re (line 41) | def headers_parse_re(headers: str) -> HTTPHeaders: function headers_parse_simple (line 49) | def headers_parse_simple(headers: str) -> HTTPHeaders: function run_headers_split (line 59) | def run_headers_split(): function run_headers_full (line 71) | def run_headers_full(): class Benchmark (line 83) | class Benchmark(Enum): method __new__ (line 84) | def __new__(cls, arg_value: str, func: Callable[[], None]): function main (line 94) | def main(): FILE: maint/benchmark/template_benchmark.py function render (line 56) | def render(): function main (line 60) | def main(): FILE: maint/scripts/custom_fixers/fix_future_imports.py function is_docstring (line 10) | def is_docstring(stmt): class FixFutureImports (line 14) | class FixFutureImports(fixer_base.BaseFix): method start_tree (line 19) | def start_tree(self, tree, filename): method new_future_import (line 22) | def new_future_import(self, old): method transform (line 31) | def transform(self, node, results): method finish_tree (line 35) | def finish_tree(self, tree, filename): FILE: maint/scripts/custom_fixers/fix_unicode_literal.py class FixUnicodeLiteral (line 5) | class FixUnicodeLiteral(fixer_base.BaseFix): method transform (line 17) | def transform(self, node, results): FILE: maint/scripts/test_resolvers.py function main (line 30) | def main(): FILE: maint/test/cython/cythonapp_test.py class CythonCoroutineTest (line 8) | class CythonCoroutineTest(AsyncTestCase): method test_native_coroutine (line 10) | def test_native_coroutine(self): method test_decorated_coroutine (line 15) | def test_decorated_coroutine(self): class CythonArgReplacerTest (line 20) | class CythonArgReplacerTest(unittest.TestCase): method test_arg_replacer_function (line 21) | def test_arg_replacer_function(self): method test_arg_replacer_method (line 29) | def test_arg_replacer_method(self): FILE: maint/test/cython/pythonmodule.py function hello (line 5) | def hello(): FILE: maint/test/mypy/bad.py class MyHandler (line 4) | class MyHandler(RequestHandler): method get (line 5) | def get(self) -> str: # Deliberate type error FILE: maint/test/mypy/good.py class MyHandler (line 5) | class MyHandler(RequestHandler): method get (line 6) | def get(self) -> None: method post (line 9) | async def post(self) -> None: FILE: maint/test/redbot/red_test.py class HelloHandler (line 15) | class HelloHandler(RequestHandler): method get (line 16) | def get(self): class RedirectHandler (line 20) | class RedirectHandler(RequestHandler): method get (line 21) | def get(self, path): class PostHandler (line 25) | class PostHandler(RequestHandler): method post (line 26) | def post(self): class ChunkedHandler (line 31) | class ChunkedHandler(RequestHandler): method get (line 34) | def get(self): class CacheHandler (line 42) | class CacheHandler(RequestHandler): method get (line 43) | def get(self, computed_etag): method compute_etag (line 46) | def compute_etag(self): class TestMixin (line 50) | class TestMixin(object): method get_handlers (line 51) | def get_handlers(self): method get_app_kwargs (line 60) | def get_app_kwargs(self): method get_allowed_warnings (line 63) | def get_allowed_warnings(self): method get_allowed_errors (line 73) | def get_allowed_errors(self): method check_url (line 76) | def check_url(self, path, method='GET', body=None, headers=None, method run_redbot (line 115) | def run_redbot(self, url, method, body, headers): method test_hello (line 130) | def test_hello(self): method test_static (line 133) | def test_static(self): method test_static_versioned_url (line 141) | def test_static_versioned_url(self): method test_redirect (line 145) | def test_redirect(self): method test_permanent_redirect (line 148) | def test_permanent_redirect(self): method test_404 (line 151) | def test_404(self): method test_post (line 154) | def test_post(self): method test_chunked (line 164) | def test_chunked(self): method test_strong_etag_match (line 167) | def test_strong_etag_match(self): method test_multiple_strong_etag_match (line 175) | def test_multiple_strong_etag_match(self): method test_strong_etag_not_match (line 183) | def test_strong_etag_not_match(self): method test_multiple_strong_etag_not_match (line 191) | def test_multiple_strong_etag_not_match(self): method test_wildcard_etag (line 199) | def test_wildcard_etag(self): method test_weak_etag_match (line 208) | def test_weak_etag_match(self): method test_multiple_weak_etag_match (line 216) | def test_multiple_weak_etag_match(self): method test_weak_etag_not_match (line 224) | def test_weak_etag_not_match(self): method test_multiple_weak_etag_not_match (line 232) | def test_multiple_weak_etag_not_match(self): class DefaultHTTPTest (line 241) | class DefaultHTTPTest(AsyncHTTPTestCase, TestMixin): method get_app (line 242) | def get_app(self): class GzipHTTPTest (line 246) | class GzipHTTPTest(AsyncHTTPTestCase, TestMixin): method get_app (line 247) | def get_app(self): method get_allowed_errors (line 250) | def get_allowed_errors(self): FILE: maint/test/websocket/client.py function run_tests (line 13) | def run_tests(): function main (line 38) | def main(): FILE: maint/test/websocket/server.py class EchoHandler (line 9) | class EchoHandler(WebSocketHandler): method on_message (line 10) | def on_message(self, message): method get_compression_options (line 13) | def get_compression_options(self): FILE: maint/vm/windows/bootstrap.py function download_to_cache (line 43) | def download_to_cache(url, local_name=None): function main (line 54) | def main(): FILE: tornado/__init__.py function __getattr__ (line 64) | def __getattr__(name: str) -> typing.Any: FILE: tornado/auth.py class AuthError (line 89) | class AuthError(Exception): class OpenIdMixin (line 93) | class OpenIdMixin: method authenticate_redirect (line 101) | def authenticate_redirect( method get_authenticated_user (line 129) | async def get_authenticated_user( method _openid_args (line 161) | def _openid_args( method _on_authentication_verified (line 215) | def _on_authentication_verified( method get_auth_http_client (line 277) | def get_auth_http_client(self) -> httpclient.AsyncHTTPClient: class OAuthMixin (line 286) | class OAuthMixin: method authorize_redirect (line 303) | async def authorize_redirect( method get_authenticated_user (line 352) | async def get_authenticated_user( method _oauth_request_token_url (line 396) | def _oauth_request_token_url( method _on_request_token (line 427) | def _on_request_token( method _oauth_access_token_url (line 451) | def _oauth_access_token_url(self, request_token: dict[str, Any]) -> str: method _oauth_consumer_token (line 477) | def _oauth_consumer_token(self) -> dict[str, Any]: method _oauth_get_user_future (line 484) | async def _oauth_get_user_future( method _oauth_request_parameters (line 508) | def _oauth_request_parameters( method get_auth_http_client (line 543) | def get_auth_http_client(self) -> httpclient.AsyncHTTPClient: class OAuth2Mixin (line 552) | class OAuth2Mixin: method authorize_redirect (line 564) | def authorize_redirect( method _oauth_request_token_url (line 605) | def _oauth_request_token_url( method oauth2_request (line 627) | async def oauth2_request( method get_auth_http_client (line 680) | def get_auth_http_client(self) -> httpclient.AsyncHTTPClient: class TwitterMixin (line 691) | class TwitterMixin(OAuthMixin): method authenticate_redirect (line 734) | async def authenticate_redirect(self, callback_uri: str | None = None)... method twitter_request (line 756) | async def twitter_request( method _oauth_consumer_token (line 828) | def _oauth_consumer_token(self) -> dict[str, Any]: method _oauth_get_user_future (line 837) | async def _oauth_get_user_future( class GoogleOAuth2Mixin (line 848) | class GoogleOAuth2Mixin(OAuth2Mixin): method get_google_oauth_settings (line 878) | def get_google_oauth_settings(self) -> dict[str, str]: method get_authenticated_user (line 894) | async def get_authenticated_user( class FacebookGraphMixin (line 978) | class FacebookGraphMixin(OAuth2Mixin): method get_authenticated_user (line 986) | async def get_authenticated_user( method facebook_request (line 1091) | async def facebook_request( function _oauth_signature (line 1151) | def _oauth_signature( function _oauth10a_signature (line 1182) | def _oauth10a_signature( function _oauth_escape (line 1215) | def _oauth_escape(val: str | bytes) -> str: function _oauth_parse_response (line 1221) | def _oauth_parse_response(body: bytes) -> dict[str, Any]: FILE: tornado/autoreload.py function start (line 113) | def start(check_time: int = 500) -> None: function wait (line 131) | def wait() -> None: function watch (line 143) | def watch(filename: str) -> None: function add_reload_hook (line 151) | def add_reload_hook(fn: Callable[[], None]) -> None: function _reload_on_update (line 161) | def _reload_on_update(modify_times: dict[str, float]) -> None: function _check_file (line 187) | def _check_file(modify_times: dict[str, float], path: str) -> None: function _reload (line 200) | def _reload() -> None: function main (line 245) | def main() -> None: FILE: tornado/concurrent.py class ReturnValueIgnoredError (line 42) | class ReturnValueIgnoredError(Exception): function is_future (line 52) | def is_future(x: Any) -> bool: class DummyExecutor (line 56) | class DummyExecutor(futures.Executor): method submit (line 57) | def submit( # type: ignore[override] method shutdown (line 67) | def shutdown(self, wait: bool = True, cancel_futures: bool = False) ->... function run_on_executor (line 74) | def run_on_executor(*args: Any, **kwargs: Any) -> Callable: function chain_future (line 141) | def chain_future( function future_set_result_unless_cancelled (line 178) | def future_set_result_unless_cancelled( function future_set_exception_unless_cancelled (line 192) | def future_set_exception_unless_cancelled( function future_set_exc_info (line 214) | def future_set_exc_info( function future_add_done_callback (line 237) | def future_add_done_callback( function future_add_done_callback (line 244) | def future_add_done_callback( function future_add_done_callback (line 250) | def future_add_done_callback( FILE: tornado/curl_httpclient.py class CurlAsyncHTTPClient (line 47) | class CurlAsyncHTTPClient(AsyncHTTPClient): method initialize (line 48) | def initialize( # type: ignore method close (line 82) | def close(self) -> None: method fetch_impl (line 97) | def fetch_impl( method _handle_socket (line 104) | def _handle_socket(self, event: int, fd: int, multi: Any, data: bytes)... method _set_timeout (line 133) | def _set_timeout(self, msecs: int) -> None: method _handle_events (line 141) | def _handle_events(self, fd: int, events: int) -> None: method _handle_timeout (line 159) | def _handle_timeout(self) -> None: method _handle_force_timeout (line 188) | def _handle_force_timeout(self) -> None: method _finish_pending_requests (line 201) | def _finish_pending_requests(self) -> None: method _process_queue (line 215) | def _process_queue(self) -> None: method _finish (line 256) | def _finish( method handle_callback_exception (line 310) | def handle_callback_exception(self, callback: Any) -> None: method _curl_create (line 313) | def _curl_create(self) -> pycurl.Curl: method _curl_setup_request (line 325) | def _curl_setup_request( method _curl_header_callback (line 547) | def _curl_header_callback( method _curl_debug (line 572) | def _curl_debug(self, debug_type: int, debug_msg: str) -> None: class CurlError (line 585) | class CurlError(HTTPError): method __init__ (line 586) | def __init__(self, errno: int, message: str) -> None: FILE: tornado/escape.py function xhtml_escape (line 39) | def xhtml_escape(value: str | bytes) -> str: function xhtml_unescape (line 62) | def xhtml_unescape(value: str | bytes) -> str: function json_encode (line 83) | def json_encode(value: Any) -> str: function json_decode (line 99) | def json_decode(value: str | bytes) -> Any: function squeeze (line 107) | def squeeze(value: str) -> str: function url_escape (line 112) | def url_escape(value: str | bytes, plus: bool = True) -> str: function url_unescape (line 132) | def url_unescape(value: str | bytes, encoding: None, plus: bool = True) ... function url_unescape (line 137) | def url_unescape(value: str | bytes, encoding: str = "utf-8", plus: bool... function url_unescape (line 141) | def url_unescape( function parse_qs_bytes (line 171) | def parse_qs_bytes( function utf8 (line 198) | def utf8(value: bytes) -> bytes: function utf8 (line 203) | def utf8(value: str) -> bytes: function utf8 (line 208) | def utf8(value: None) -> None: function utf8 (line 212) | def utf8(value: None | str | bytes) -> bytes | None: function to_unicode (line 229) | def to_unicode(value: str) -> str: function to_unicode (line 234) | def to_unicode(value: bytes) -> str: function to_unicode (line 239) | def to_unicode(value: None) -> None: function to_unicode (line 243) | def to_unicode(value: None | str | bytes) -> str | None: function recursive_unicode (line 266) | def recursive_unicode(obj: Any) -> Any: function linkify (line 297) | def linkify( FILE: tornado/gen.py class KeyReuseError (line 106) | class KeyReuseError(Exception): class UnknownKeyError (line 110) | class UnknownKeyError(Exception): class LeakedCallbackError (line 114) | class LeakedCallbackError(Exception): class BadYieldError (line 118) | class BadYieldError(Exception): class ReturnValueIgnoredError (line 122) | class ReturnValueIgnoredError(Exception): function _value_from_stopiteration (line 126) | def _value_from_stopiteration(e: Union[StopIteration, "Return"]) -> Any: function _create_future (line 141) | def _create_future() -> Future: function _fake_ctx_run (line 156) | def _fake_ctx_run(f: Callable[..., _T], *args: Any, **kw: Any) -> _T: function coroutine (line 161) | def coroutine( function coroutine (line 167) | def coroutine(func: Callable[..., _T]) -> Callable[..., "Future[_T]"]: ... function coroutine (line 170) | def coroutine( function is_coroutine_function (line 262) | def is_coroutine_function(func: Any) -> bool: class Return (line 271) | class Return(Exception): method __init__ (line 289) | def __init__(self, value: Any = None) -> None: class WaitIterator (line 296) | class WaitIterator: method __init__ (line 353) | def __init__(self, *args: Future, **kwargs: Future) -> None: method done (line 372) | def done(self) -> bool: method next (line 380) | def next(self) -> Future: method _done_callback (line 393) | def _done_callback(self, done: Future) -> None: method _return_result (line 399) | def _return_result(self, done: Future) -> Future: method __aiter__ (line 414) | def __aiter__(self) -> typing.AsyncIterator: method __anext__ (line 417) | def __anext__(self) -> Future: function multi (line 425) | def multi( function multi (line 432) | def multi( function multi (line 438) | def multi( function multi_future (line 492) | def multi_future( function maybe_future (line 555) | def maybe_future(x: Any) -> Future: function with_timeout (line 576) | def with_timeout( function sleep (line 657) | def sleep(duration: float) -> "Future[None]": class _NullFuture (line 678) | class _NullFuture: method result (line 691) | def result(self) -> None: method done (line 694) | def done(self) -> bool: class Runner (line 723) | class Runner: method __init__ (line 732) | def __init__( method run (line 750) | def run(self) -> None: method handle_yield (line 808) | def handle_yield(self, yielded: _Yieldable) -> bool: method handle_exception (line 831) | def handle_exception( function _wrap_awaitable (line 843) | def _wrap_awaitable(awaitable: Awaitable) -> Future: function convert_yielded (line 856) | def convert_yielded(yielded: _Yieldable) -> Future: FILE: tornado/http1connection.py class _QuietException (line 41) | class _QuietException(Exception): method __init__ (line 42) | def __init__(self) -> None: class _ExceptionLoggingContext (line 46) | class _ExceptionLoggingContext: method __init__ (line 52) | def __init__(self, logger: logging.Logger) -> None: method __enter__ (line 55) | def __enter__(self) -> None: method __exit__ (line 58) | def __exit__( class HTTP1ConnectionParameters (line 73) | class HTTP1ConnectionParameters: method __init__ (line 76) | def __init__( class HTTP1Connection (line 106) | class HTTP1Connection(httputil.HTTPConnection): method __init__ (line 113) | def __init__( method read_response (line 170) | def read_response(self, delegate: httputil.HTTPMessageDelegate) -> Awa... method _read_message (line 185) | async def _read_message(self, delegate: httputil.HTTPMessageDelegate) ... method _clear_callbacks (line 307) | def _clear_callbacks(self) -> None: method set_close_callback (line 319) | def set_close_callback(self, callback: Callable[[], None] | None) -> N... method _on_connection_close (line 333) | def _on_connection_close(self) -> None: method close (line 345) | def close(self) -> None: method detach (line 352) | def detach(self) -> iostream.IOStream: method set_body_timeout (line 367) | def set_body_timeout(self, timeout: float) -> None: method set_max_body_size (line 374) | def set_max_body_size(self, max_body_size: int) -> None: method write_headers (line 381) | def write_headers( method _format_chunk (line 468) | def _format_chunk(self, chunk: bytes) -> bytes: method write (line 484) | def write(self, chunk: bytes) -> "Future[None]": method finish (line 502) | def finish(self) -> None: method _on_write_complete (line 534) | def _on_write_complete(self, future: "Future[None]") -> None: method _can_keep_alive (line 547) | def _can_keep_alive( method _finish_request (line 567) | def _finish_request(self, future: "Optional[Future[None]]") -> None: method _parse_headers (line 578) | def _parse_headers(self, data: bytes) -> tuple[str, httputil.HTTPHeade... method _read_body (line 590) | def _read_body( method _read_fixed_body (line 643) | async def _read_fixed_body( method _read_chunked_body (line 657) | async def _read_chunked_body(self, delegate: httputil.HTTPMessageDeleg... method _read_body_until_close (line 691) | async def _read_body_until_close( class _GzipMessageDelegate (line 702) | class _GzipMessageDelegate(httputil.HTTPMessageDelegate): method __init__ (line 705) | def __init__(self, delegate: httputil.HTTPMessageDelegate, chunk_size:... method headers_received (line 710) | def headers_received( method data_received (line 724) | async def data_received(self, chunk: bytes) -> None: method finish (line 745) | def finish(self) -> None: method on_connection_close (line 760) | def on_connection_close(self) -> None: class HTTP1ServerConnection (line 764) | class HTTP1ServerConnection: method __init__ (line 767) | def __init__( method close (line 786) | async def close(self) -> None: method start_serving (line 800) | def start_serving(self, delegate: httputil.HTTPServerConnectionDelegat... method _server_request_loop (line 811) | async def _server_request_loop( function parse_int (line 845) | def parse_int(s: str) -> int: function parse_hex_int (line 852) | def parse_hex_int(s: str) -> int: function is_transfer_encoding_chunked (line 859) | def is_transfer_encoding_chunked(headers: httputil.HTTPHeaders) -> bool: FILE: tornado/httpclient.py class HTTPClient (line 59) | class HTTPClient: method __init__ (line 89) | def __init__( method __del__ (line 112) | def __del__(self) -> None: method close (line 115) | def close(self) -> None: method fetch (line 122) | def fetch( class AsyncHTTPClient (line 140) | class AsyncHTTPClient(Configurable): method configurable_base (line 182) | def configurable_base(cls) -> type[Configurable]: method configurable_default (line 186) | def configurable_default(cls) -> type[Configurable]: method _async_clients (line 192) | def _async_clients(cls) -> dict[IOLoop, "AsyncHTTPClient"]: method __new__ (line 198) | def __new__(cls, force_instance: bool = False, **kwargs: Any) -> "Asyn... method initialize (line 216) | def initialize(self, defaults: dict[str, Any] | None = None) -> None: method close (line 223) | def close(self) -> None: method fetch (line 249) | def fetch( method fetch_impl (line 309) | def fetch_impl( method configure (line 315) | def configure( class HTTPRequest (line 339) | class HTTPRequest: method __init__ (line 358) | def __init__( method headers (line 552) | def headers(self) -> httputil.HTTPHeaders: method headers (line 559) | def headers(self, value: dict[str, str] | httputil.HTTPHeaders) -> None: method body (line 566) | def body(self) -> bytes: method body (line 570) | def body(self, value: bytes | str) -> None: class HTTPResponse (line 574) | class HTTPResponse: method __init__ (line 629) | def __init__( method body (line 672) | def body(self) -> bytes: method rethrow (line 680) | def rethrow(self) -> None: method __repr__ (line 685) | def __repr__(self) -> str: class HTTPClientError (line 690) | class HTTPClientError(Exception): method __init__ (line 711) | def __init__( method __str__ (line 722) | def __str__(self) -> str: class _RequestProxy (line 735) | class _RequestProxy: method __init__ (line 741) | def __init__(self, request: HTTPRequest, defaults: dict[str, Any] | No... method __getattr__ (line 745) | def __getattr__(self, name: str) -> Any: function main (line 755) | def main() -> None: FILE: tornado/httpserver.py class HTTPServer (line 41) | class HTTPServer(TCPServer, Configurable, httputil.HTTPServerConnectionD... method __init__ (line 151) | def __init__(self, *args: Any, **kwargs: Any) -> None: method initialize (line 159) | def initialize( method configurable_base (line 204) | def configurable_base(cls) -> type[Configurable]: method configurable_default (line 208) | def configurable_default(cls) -> type[Configurable]: method close_all_connections (line 211) | async def close_all_connections(self) -> None: method handle_stream (line 230) | def handle_stream(self, stream: iostream.IOStream, address: tuple) -> ... method start_request (line 238) | def start_request( method on_close (line 251) | def on_close(self, server_conn: object) -> None: class _CallableAdapter (line 255) | class _CallableAdapter(httputil.HTTPMessageDelegate): method __init__ (line 256) | def __init__( method headers_received (line 267) | def headers_received( method data_received (line 279) | def data_received(self, chunk: bytes) -> Awaitable[None] | None: method finish (line 283) | def finish(self) -> None: method on_connection_close (line 289) | def on_connection_close(self) -> None: class _HTTPRequestContext (line 293) | class _HTTPRequestContext: method __init__ (line 294) | def __init__( method __str__ (line 328) | def __str__(self) -> str: method _apply_xheaders (line 339) | def _apply_xheaders(self, headers: httputil.HTTPHeaders) -> None: method _unapply_xheaders (line 361) | def _unapply_xheaders(self) -> None: class _ProxyAdapter (line 371) | class _ProxyAdapter(httputil.HTTPMessageDelegate): method __init__ (line 372) | def __init__( method headers_received (line 380) | def headers_received( method data_received (line 390) | def data_received(self, chunk: bytes) -> Awaitable[None] | None: method finish (line 393) | def finish(self) -> None: method on_connection_close (line 397) | def on_connection_close(self) -> None: method _cleanup (line 401) | def _cleanup(self) -> None: FILE: tornado/httputil.py class _ABNF (line 66) | class _ABNF: function _normalize_header (line 123) | def _normalize_header(name: str) -> str: class HTTPHeaders (line 132) | class HTTPHeaders(collections.abc.MutableMapping[str, str]): method __init__ (line 162) | def __init__(self, __arg: Mapping[str, list[str]]) -> None: method __init__ (line 166) | def __init__(self, __arg: Mapping[str, str]) -> None: method __init__ (line 170) | def __init__(self, *args: tuple[str, str]) -> None: method __init__ (line 174) | def __init__(self, **kwargs: str) -> None: method __init__ (line 177) | def __init__(self, *args: typing.Any, **kwargs: str) -> None: method add (line 197) | def add(self, name: str, value: str, *, _chars_are_bytes: bool = True)... method get_list (line 217) | def get_list(self, name: str) -> list[str]: method get_all (line 222) | def get_all(self) -> Iterable[tuple[str, str]]: method parse_line (line 232) | def parse_line(self, line: str, *, _chars_are_bytes: bool = True) -> N... method parse (line 284) | def parse(cls, headers: str, *, _chars_are_bytes: bool = True) -> HTTP... method __setitem__ (line 326) | def __setitem__(self, name: str, value: str) -> None: method __contains__ (line 331) | def __contains__(self, name: object) -> bool: method __getitem__ (line 339) | def __getitem__(self, name: str) -> str: method __delitem__ (line 345) | def __delitem__(self, name: str) -> None: method __len__ (line 350) | def __len__(self) -> int: method __iter__ (line 353) | def __iter__(self) -> Iterator[typing.Any]: method copy (line 356) | def copy(self) -> HTTPHeaders: method __str__ (line 365) | def __str__(self) -> str: class HTTPServerRequest (line 374) | class HTTPServerRequest: method __init__ (line 478) | def __init__( method cookies (line 548) | def cookies(self) -> dict[str, http.cookies.Morsel]: method full_url (line 568) | def full_url(self) -> str: method request_time (line 572) | def request_time(self) -> float: method get_ssl_certificate (line 579) | def get_ssl_certificate(self, binary_form: bool = False) -> None | dic... method _parse_body (line 608) | def _parse_body(self) -> None: method __repr__ (line 620) | def __repr__(self) -> str: class HTTPInputError (line 626) | class HTTPInputError(Exception): class HTTPOutputError (line 636) | class HTTPOutputError(Exception): class HTTPServerConnectionDelegate (line 645) | class HTTPServerConnectionDelegate: method start_request (line 651) | def start_request( method on_close (line 665) | def on_close(self, server_conn: object) -> None: class HTTPMessageDelegate (line 674) | class HTTPMessageDelegate: method headers_received (line 681) | def headers_received( method data_received (line 700) | def data_received(self, chunk: bytes) -> Awaitable[None] | None: method finish (line 707) | def finish(self) -> None: method on_connection_close (line 711) | def on_connection_close(self) -> None: class HTTPConnection (line 720) | class HTTPConnection: method write_headers (line 726) | def write_headers( method write (line 750) | def write(self, chunk: bytes) -> Future[None]: method finish (line 761) | def finish(self) -> None: function url_concat (line 766) | def url_concat( class HTTPFile (line 811) | class HTTPFile(ObjectDict): function _parse_request_range (line 827) | def _parse_request_range( function _get_content_range (line 878) | def _get_content_range(start: int | None, end: int | None, total: int) -... function _int_or_none (line 893) | def _int_or_none(val: str) -> int | None: class ParseMultipartConfig (line 901) | class ParseMultipartConfig: class ParseBodyConfig (line 935) | class ParseBodyConfig: function set_parse_body_config (line 950) | def set_parse_body_config(config: ParseBodyConfig) -> None: function parse_body_arguments (line 976) | def parse_body_arguments( function parse_multipart_form_data (line 1031) | def parse_multipart_form_data( function format_timestamp (line 1095) | def format_timestamp( class RequestStartLine (line 1119) | class RequestStartLine(typing.NamedTuple): function parse_request_start_line (line 1125) | def parse_request_start_line(line: str) -> RequestStartLine: class ResponseStartLine (line 1147) | class ResponseStartLine(typing.NamedTuple): function parse_response_start_line (line 1153) | def parse_response_start_line(line: str) -> ResponseStartLine: function _parseparam (line 1189) | def _parseparam(s: str) -> Generator[str]: function _parse_header (line 1207) | def _parse_header(line: str) -> tuple[str, dict[str, str]]: function _encode_header (line 1242) | def _encode_header(key: str, pdict: dict[str, str]) -> str: function encode_username_password (line 1262) | def encode_username_password(username: str | bytes, password: str | byte... function doctests (line 1276) | def doctests() -> unittest.TestSuite: function split_host_and_port (line 1285) | def split_host_and_port(netloc: str) -> tuple[str, int | None]: function qs_to_qsl (line 1302) | def qs_to_qsl(qs: dict[str, list[AnyStr]]) -> Iterable[tuple[str, AnyStr]]: function _unquote_replace (line 1315) | def _unquote_replace(m: re.Match) -> str: function _unquote_cookie (line 1322) | def _unquote_cookie(s: str) -> str: function parse_cookie (line 1349) | def parse_cookie(cookie: str) -> dict[str, str]: FILE: tornado/ioloop.py class _Selectable (line 55) | class _Selectable(Protocol): method fileno (line 56) | def fileno(self) -> int: method close (line 59) | def close(self) -> None: class IOLoop (line 67) | class IOLoop(Configurable): method configure (line 167) | def configure(cls, impl: None | str | type[Configurable], **kwargs: An... method instance (line 177) | def instance() -> IOLoop: method install (line 198) | def install(self) -> None: method clear_instance (line 213) | def clear_instance() -> None: method current (line 230) | def current() -> IOLoop: method current (line 235) | def current(instance: bool = True) -> IOLoop | None: method current (line 239) | def current(instance: bool = True) -> IOLoop | None: method make_current (line 283) | def make_current(self) -> None: method _make_current (line 310) | def _make_current(self) -> None: method clear_current (line 315) | def clear_current() -> None: method _clear_current (line 332) | def _clear_current() -> None: method _clear_current_hook (line 337) | def _clear_current_hook(self) -> None: method configurable_base (line 345) | def configurable_base(cls) -> type[Configurable]: method configurable_default (line 349) | def configurable_default(cls) -> type[Configurable]: method initialize (line 354) | def initialize(self, make_current: bool = True) -> None: method close (line 358) | def close(self, all_fds: bool = False) -> None: method add_handler (line 386) | def add_handler( method add_handler (line 392) | def add_handler( method add_handler (line 397) | def add_handler( method update_handler (line 416) | def update_handler(self, fd: int | _Selectable, events: int) -> None: method remove_handler (line 425) | def remove_handler(self, fd: int | _Selectable) -> None: method start (line 434) | def start(self) -> None: method stop (line 442) | def stop(self) -> None: method run_sync (line 455) | def run_sync(self, func: Callable, timeout: float | None = None) -> Any: method time (line 543) | def time(self) -> float: method add_timeout (line 557) | def add_timeout( method call_later (line 598) | def call_later( method call_at (line 613) | def call_at( method remove_timeout (line 631) | def remove_timeout(self, timeout: object) -> None: method add_callback (line 640) | def add_callback(self, callback: Callable, *args: Any, **kwargs: Any) ... method add_callback_from_signal (line 652) | def add_callback_from_signal( method spawn_callback (line 667) | def spawn_callback(self, callback: Callable, *args: Any, **kwargs: Any... method add_future (line 676) | def add_future( method run_in_executor (line 709) | def run_in_executor( method set_default_executor (line 737) | def set_default_executor(self, executor: concurrent.futures.Executor) ... method _run_callback (line 744) | def _run_callback(self, callback: Callable[[], Any]) -> None: method _discard_future_result (line 774) | def _discard_future_result(self, future: Future) -> None: method split_fd (line 778) | def split_fd(self, fd: int | _Selectable) -> tuple[int, int | _Selecta... method close_fd (line 798) | def close_fd(self, fd: int | _Selectable) -> None: method _register_task (line 818) | def _register_task(self, f: Future) -> None: method _unregister_task (line 821) | def _unregister_task(self, f: Future) -> None: class _Timeout (line 825) | class _Timeout: method __init__ (line 831) | def __init__( method __lt__ (line 847) | def __lt__(self, other: _Timeout) -> bool: method __le__ (line 850) | def __le__(self, other: _Timeout) -> bool: class PeriodicCallback (line 854) | class PeriodicCallback: method __init__ (line 892) | def __init__( method start (line 909) | def start(self) -> None: method stop (line 919) | def stop(self) -> None: method is_running (line 926) | def is_running(self) -> bool: method _run (line 933) | async def _run(self) -> None: method _schedule_next (line 945) | def _schedule_next(self) -> None: method _update_next (line 950) | def _update_next(self, current_time: float) -> None: FILE: tornado/iostream.py class StreamClosedError (line 75) | class StreamClosedError(IOError): method __init__ (line 89) | def __init__(self, real_error: BaseException | None = None) -> None: class UnsatisfiableReadError (line 94) | class UnsatisfiableReadError(Exception): class StreamBufferFullError (line 104) | class StreamBufferFullError(Exception): class _StreamBuffer (line 108) | class _StreamBuffer: method __init__ (line 114) | def __init__(self) -> None: method __len__ (line 123) | def __len__(self) -> int: method append (line 130) | def append(self, data: bytes | bytearray | memoryview) -> None: method peek (line 152) | def peek(self, size: int) -> memoryview: method advance (line 169) | def advance(self, size: int) -> None: class BaseIOStream (line 198) | class BaseIOStream: method __init__ (line 216) | def __init__( method fileno (line 273) | def fileno(self) -> int | ioloop._Selectable: method close_fd (line 277) | def close_fd(self) -> None: method write_to_fd (line 285) | def write_to_fd(self, data: memoryview) -> int: method read_from_fd (line 292) | def read_from_fd(self, buf: bytearray | memoryview) -> int | None: method get_fd_error (line 307) | def get_fd_error(self) -> Exception | None: method read_until_regex (line 317) | def read_until_regex( method read_until (line 356) | def read_until( method read_bytes (line 391) | def read_bytes(self, num_bytes: int, partial: bool = False) -> Awaitab... method read_into (line 419) | def read_into(self, buf: bytearray, partial: bool = False) -> Awaitabl... method read_until_close (line 464) | def read_until_close(self) -> Awaitable[bytes]: method write (line 494) | def write(self, data: bytes | memoryview) -> "Future[None]": method set_close_callback (line 536) | def set_close_callback(self, callback: Callable[[], None] | None) -> N... method close (line 551) | def close( method _signal_closed (line 599) | def _signal_closed(self) -> None: method reading (line 638) | def reading(self) -> bool: method writing (line 642) | def writing(self) -> bool: method closed (line 646) | def closed(self) -> bool: method set_nodelay (line 650) | def set_nodelay(self, value: bool) -> None: method _handle_connect (line 665) | def _handle_connect(self) -> None: method _handle_events (line 668) | def _handle_events(self, fd: int | ioloop._Selectable, events: int) ->... method _read_to_buffer_loop (line 721) | def _read_to_buffer_loop(self) -> int | None: method _handle_read (line 762) | def _handle_read(self) -> None: method _start_read (line 776) | def _start_read(self) -> Future: method _finish_read (line 799) | def _finish_read(self, size: int) -> None: method _try_inline_read (line 814) | def _try_inline_read(self) -> None: method _read_to_buffer (line 836) | def _read_to_buffer(self) -> int | None: method _read_from_buffer (line 882) | def _read_from_buffer(self, pos: int) -> None: method _find_read_pos (line 892) | def _find_read_pos(self) -> int | None: method _check_max_bytes (line 931) | def _check_max_bytes(self, delimiter: bytes | Pattern, size: int) -> N... method _handle_write (line 938) | def _handle_write(self) -> None: method _consume (line 976) | def _consume(self, loc: int) -> bytes: method _check_closed (line 987) | def _check_closed(self) -> None: method _maybe_add_error_listener (line 991) | def _maybe_add_error_listener(self) -> None: method _add_io_state (line 1006) | def _add_io_state(self, state: int) -> None: method _is_connreset (line 1035) | def _is_connreset(self, exc: BaseException) -> bool: class IOStream (line 1046) | class IOStream(BaseIOStream): method __init__ (line 1086) | def __init__(self, socket: socket.socket, *args: Any, **kwargs: Any) -... method fileno (line 1091) | def fileno(self) -> int | ioloop._Selectable: method close_fd (line 1094) | def close_fd(self) -> None: method get_fd_error (line 1098) | def get_fd_error(self) -> Exception | None: method read_from_fd (line 1102) | def read_from_fd(self, buf: bytearray | memoryview) -> int | None: method write_to_fd (line 1110) | def write_to_fd(self, data: memoryview) -> int: method connect (line 1118) | def connect( method start_tls (line 1185) | def start_tls( method _handle_connect (line 1261) | def _handle_connect(self) -> None: method set_nodelay (line 1289) | def set_nodelay(self, value: bool) -> None: class SSLIOStream (line 1306) | class SSLIOStream(IOStream): method __init__ (line 1320) | def __init__(self, *args: Any, **kwargs: Any) -> None: method reading (line 1343) | def reading(self) -> bool: method writing (line 1346) | def writing(self) -> bool: method _do_ssl_handshake (line 1349) | def _do_ssl_handshake(self) -> None: method _finish_ssl_connect (line 1400) | def _finish_ssl_connect(self) -> None: method _handle_read (line 1406) | def _handle_read(self) -> None: method _handle_write (line 1412) | def _handle_write(self) -> None: method connect (line 1418) | def connect( method _handle_connect (line 1437) | def _handle_connect(self) -> None: method wait_for_handshake (line 1465) | def wait_for_handshake(self) -> "Future[SSLIOStream]": method write_to_fd (line 1497) | def write_to_fd(self, data: memoryview) -> int: method read_from_fd (line 1520) | def read_from_fd(self, buf: bytearray | memoryview) -> int | None: method _is_connreset (line 1546) | def _is_connreset(self, e: BaseException) -> bool: class PipeIOStream (line 1552) | class PipeIOStream(BaseIOStream): method __init__ (line 1563) | def __init__(self, fd: int, *args: Any, **kwargs: Any) -> None: method fileno (line 1576) | def fileno(self) -> int: method close_fd (line 1579) | def close_fd(self) -> None: method write_to_fd (line 1582) | def write_to_fd(self, data: memoryview) -> int: method read_from_fd (line 1590) | def read_from_fd(self, buf: bytearray | memoryview) -> int | None: function doctests (line 1605) | def doctests() -> Any: FILE: tornado/locale.py function get (line 63) | def get(*locale_codes: str) -> Locale: function set_default_locale (line 77) | def set_default_locale(code: str) -> None: function load_translations (line 91) | def load_translations(directory: str, encoding: str | None = None) -> None: function load_gettext_translations (line 178) | def load_gettext_translations(directory: str, domain: str) -> None: function get_supported_locales (line 220) | def get_supported_locales() -> Iterable[str]: class Locale (line 225) | class Locale: method get_closest (line 235) | def get_closest(cls, *locale_codes: str) -> Locale: method get (line 253) | def get(cls, code: str) -> Locale: method __init__ (line 270) | def __init__(self, code: str) -> None: method translate (line 305) | def translate( method pgettext (line 320) | def pgettext( method format_date (line 329) | def format_date( method format_day (line 435) | def format_day( method list (line 457) | def list(self, parts: Any) -> str: method friendly_number (line 474) | def friendly_number(self, value: int) -> str: class CSVLocale (line 486) | class CSVLocale(Locale): method __init__ (line 489) | def __init__(self, code: str, translations: dict[str, dict[str, str]])... method translate (line 493) | def translate( method pgettext (line 510) | def pgettext( class GettextLocale (line 522) | class GettextLocale(Locale): method __init__ (line 525) | def __init__(self, code: str, translations: gettext.NullTranslations) ... method translate (line 532) | def translate( method pgettext (line 544) | def pgettext( FILE: tornado/locks.py class _TimeoutGarbageCollector (line 27) | class _TimeoutGarbageCollector: method __init__ (line 37) | def __init__(self) -> None: method _garbage_collect (line 41) | def _garbage_collect(self) -> None: class Condition (line 49) | class Condition(_TimeoutGarbageCollector): method __repr__ (line 109) | def __repr__(self) -> str: method wait (line 115) | def wait( method notify (line 137) | def notify(self, n: int = 1) -> None: method notify_all (line 149) | def notify_all(self) -> None: class Event (line 154) | class Event: method __init__ (line 194) | def __init__(self) -> None: method __repr__ (line 198) | def __repr__(self) -> str: method is_set (line 204) | def is_set(self) -> bool: method set (line 208) | def set(self) -> None: method clear (line 220) | def clear(self) -> None: method wait (line 227) | def wait( class _ReleasingContextManager (line 254) | class _ReleasingContextManager: method __init__ (line 263) | def __init__(self, obj: Any) -> None: method __enter__ (line 266) | def __enter__(self) -> None: method __exit__ (line 269) | def __exit__( class Semaphore (line 278) | class Semaphore(_TimeoutGarbageCollector): method __init__ (line 379) | def __init__(self, value: int = 1) -> None: method __repr__ (line 386) | def __repr__(self) -> str: method release (line 393) | def release(self) -> None: method acquire (line 410) | def acquire( method __enter__ (line 438) | def __enter__(self) -> None: method __exit__ (line 441) | def __exit__( method __aenter__ (line 449) | async def __aenter__(self) -> None: method __aexit__ (line 452) | async def __aexit__( class BoundedSemaphore (line 461) | class BoundedSemaphore(Semaphore): method __init__ (line 470) | def __init__(self, value: int = 1) -> None: method release (line 474) | def release(self) -> None: class Lock (line 481) | class Lock: method __init__ (line 518) | def __init__(self) -> None: method __repr__ (line 521) | def __repr__(self) -> str: method acquire (line 524) | def acquire( method release (line 534) | def release(self) -> None: method __enter__ (line 546) | def __enter__(self) -> None: method __exit__ (line 549) | def __exit__( method __aenter__ (line 557) | async def __aenter__(self) -> None: method __aexit__ (line 560) | async def __aexit__( FILE: tornado/log.py function _stderr_supports_color (line 56) | def _stderr_supports_color() -> bool: function _safe_unicode (line 75) | def _safe_unicode(s: Any) -> str: class LogFormatter (line 82) | class LogFormatter(logging.Formatter): method __init__ (line 117) | def __init__( method format (line 169) | def format(self, record: Any) -> str: function enable_pretty_logging (line 216) | def enable_pretty_logging( function define_logging_options (line 266) | def define_logging_options(options: Any = None) -> None: FILE: tornado/netutil.py function bind_sockets (line 56) | def bind_sockets( function bind_unix_socket (line 192) | def bind_unix_socket( function add_accept_handler (line 233) | def add_accept_handler( function is_valid_ip (line 293) | def is_valid_ip(ip: str) -> bool: class Resolver (line 320) | class Resolver(Configurable): method configurable_base (line 349) | def configurable_base(cls) -> type["Resolver"]: method configurable_default (line 353) | def configurable_default(cls) -> type["Resolver"]: method resolve (line 356) | def resolve( method close (line 382) | def close(self) -> None: function _resolve_addr (line 391) | def _resolve_addr( class DefaultExecutorResolver (line 406) | class DefaultExecutorResolver(Resolver): method resolve (line 416) | async def resolve( class DefaultLoopResolver (line 425) | class DefaultLoopResolver(Resolver): method resolve (line 428) | async def resolve( class ExecutorResolver (line 444) | class ExecutorResolver(Resolver): method initialize (line 462) | def initialize( method close (line 474) | def close(self) -> None: method resolve (line 480) | def resolve( class BlockingResolver (line 486) | class BlockingResolver(ExecutorResolver): method initialize (line 497) | def initialize(self) -> None: # type: ignore class ThreadedResolver (line 501) | class ThreadedResolver(ExecutorResolver): method initialize (line 521) | def initialize(self, num_threads: int = 10) -> None: # type: ignore method _create_threadpool (line 526) | def _create_threadpool( class OverrideResolver (line 540) | class OverrideResolver(Resolver): method initialize (line 563) | def initialize(self, resolver: Resolver, mapping: dict) -> None: method close (line 567) | def close(self) -> None: method resolve (line 570) | def resolve( function ssl_options_to_context (line 590) | def ssl_options_to_context( function ssl_wrap_socket (line 643) | def ssl_wrap_socket( FILE: tornado/options.py class Error (line 119) | class Error(Exception): class OptionParser (line 125) | class OptionParser: method __init__ (line 132) | def __init__(self) -> None: method _normalize_name (line 143) | def _normalize_name(self, name: str) -> str: method __getattr__ (line 146) | def __getattr__(self, name: str) -> Any: method __setattr__ (line 152) | def __setattr__(self, name: str, value: Any) -> None: method __iter__ (line 158) | def __iter__(self) -> Iterator: method __contains__ (line 161) | def __contains__(self, name: str) -> bool: method __getitem__ (line 165) | def __getitem__(self, name: str) -> Any: method __setitem__ (line 168) | def __setitem__(self, name: str, value: Any) -> None: method items (line 171) | def items(self) -> Iterable[tuple[str, Any]]: method groups (line 178) | def groups(self) -> set[str]: method group_dict (line 185) | def group_dict(self, group: str) -> dict[str, Any]: method as_dict (line 208) | def as_dict(self) -> dict[str, Any]: method define (line 215) | def define( method parse_command_line (line 307) | def parse_command_line( method parse_config_file (line 361) | def parse_config_file(self, path: str, final: bool = True) -> None: method print_help (line 432) | def print_help(self, file: TextIO | None = None) -> None: method _help_callback (line 462) | def _help_callback(self, value: bool) -> None: method add_parse_callback (line 467) | def add_parse_callback(self, callback: Callable[[], None]) -> None: method run_parse_callbacks (line 471) | def run_parse_callbacks(self) -> None: method mockable (line 475) | def mockable(self) -> "_Mockable": class _Mockable (line 489) | class _Mockable: method __init__ (line 502) | def __init__(self, options: OptionParser) -> None: method __getattr__ (line 507) | def __getattr__(self, name: str) -> Any: method __setattr__ (line 510) | def __setattr__(self, name: str, value: Any) -> None: method __delattr__ (line 515) | def __delattr__(self, name: str) -> None: class _Option (line 519) | class _Option: method __init__ (line 525) | def __init__( method value (line 552) | def value(self) -> Any: method parse (line 555) | def parse(self, value: str) -> Any: method set (line 579) | def set(self, value: Any) -> None: method _parse_datetime (line 616) | def _parse_datetime(self, value: str) -> datetime.datetime: method _parse_timedelta (line 642) | def _parse_timedelta(self, value: str) -> datetime.timedelta: method _parse_bool (line 660) | def _parse_bool(self, value: str) -> bool: method _parse_string (line 663) | def _parse_string(self, value: str) -> str: function define (line 674) | def define( function parse_command_line (line 700) | def parse_command_line(args: list[str] | None = None, final: bool = True... function parse_config_file (line 708) | def parse_config_file(path: str, final: bool = True) -> None: function print_help (line 716) | def print_help(file: TextIO | None = None) -> None: function add_parse_callback (line 724) | def add_parse_callback(callback: Callable[[], None]) -> None: FILE: tornado/platform/asyncio.py class _HasFileno (line 52) | class _HasFileno(Protocol): method fileno (line 53) | def fileno(self) -> int: function _atexit_callback (line 68) | def _atexit_callback() -> None: class BaseAsyncIOLoop (line 89) | class BaseAsyncIOLoop(IOLoop): method initialize (line 90) | def initialize( # type: ignore method close (line 139) | def close(self, all_fds: bool = False) -> None: method add_handler (line 156) | def add_handler( method update_handler (line 170) | def update_handler(self, fd: int | _Selectable, events: int) -> None: method remove_handler (line 189) | def remove_handler(self, fd: int | _Selectable) -> None: method _handle_events (line 201) | def _handle_events(self, fd: int, events: int) -> None: method start (line 205) | def start(self) -> None: method stop (line 208) | def stop(self) -> None: method call_at (line 211) | def call_at( method remove_timeout (line 223) | def remove_timeout(self, timeout: object) -> None: method add_callback (line 226) | def add_callback(self, callback: Callable, *args: Any, **kwargs: Any) ... method add_callback_from_signal (line 250) | def add_callback_from_signal( method run_in_executor (line 261) | def run_in_executor( method set_default_executor (line 269) | def set_default_executor(self, executor: concurrent.futures.Executor) ... class AsyncIOMainLoop (line 273) | class AsyncIOMainLoop(BaseAsyncIOLoop): method initialize (line 288) | def initialize(self, **kwargs: Any) -> None: # type: ignore method _make_current (line 291) | def _make_current(self) -> None: class AsyncIOLoop (line 297) | class AsyncIOLoop(BaseAsyncIOLoop): method initialize (line 323) | def initialize(self, **kwargs: Any) -> None: # type: ignore method close (line 337) | def close(self, all_fds: bool = False) -> None: method _make_current (line 342) | def _make_current(self) -> None: method _clear_current_hook (line 351) | def _clear_current_hook(self) -> None: function to_tornado_future (line 357) | def to_tornado_future(asyncio_future: asyncio.Future) -> asyncio.Future: function to_asyncio_future (line 369) | def to_asyncio_future(tornado_future: asyncio.Future) -> asyncio.Future: function __getattr__ (line 388) | def __getattr__(name: str) -> typing.Any: class SelectorThread (line 457) | class SelectorThread: method __init__ (line 470) | def __init__(self, real_loop: asyncio.AbstractEventLoop) -> None: method close (line 507) | def close(self) -> None: method _thread_manager (line 522) | async def _thread_manager(self) -> typing.AsyncGenerator[None, None]: method _wake_selector (line 547) | def _wake_selector(self) -> None: method _consume_waker (line 555) | def _consume_waker(self) -> None: method _start_select (line 561) | def _start_select(self) -> None: method _run_select (line 570) | def _run_select(self) -> None: method _handle_select (line 636) | def _handle_select( method _handle_event (line 645) | def _handle_event( method add_reader (line 656) | def add_reader( method add_writer (line 662) | def add_writer( method remove_reader (line 668) | def remove_reader(self, fd: _FileDescriptorLike) -> bool: method remove_writer (line 676) | def remove_writer(self, fd: _FileDescriptorLike) -> bool: class AddThreadSelectorEventLoop (line 685) | class AddThreadSelectorEventLoop(asyncio.AbstractEventLoop): method __getattribute__ (line 715) | def __getattribute__(self, name: str) -> Any: method __init__ (line 720) | def __init__(self, real_loop: asyncio.AbstractEventLoop) -> None: method close (line 724) | def close(self) -> None: method add_reader (line 728) | def add_reader( method add_writer (line 736) | def add_writer( method remove_reader (line 744) | def remove_reader(self, fd: "_FileDescriptorLike") -> bool: method remove_writer (line 747) | def remove_writer(self, fd: "_FileDescriptorLike") -> bool: FILE: tornado/platform/caresresolver.py class CaresResolver (line 14) | class CaresResolver(Resolver): method initialize (line 35) | def initialize(self) -> None: method _sock_state_cb (line 40) | def _sock_state_cb(self, fd: int, readable: bool, writable: bool) -> N... method _handle_events (line 52) | def _handle_events(self, fd: int, events: int) -> None: method resolve (line 62) | def resolve( FILE: tornado/platform/twisted.py function install (line 24) | def install() -> None: function _ (line 51) | def _(d: Deferred) -> Future: FILE: tornado/process.py function cpu_count (line 44) | def cpu_count() -> int: function _reseed_random (line 60) | def _reseed_random() -> None: function fork_processes (line 78) | def fork_processes(num_processes: int | None, max_restarts: int | None =... function task_id (line 171) | def task_id() -> int | None: class Subprocess (line 179) | class Subprocess: method __init__ (line 206) | def __init__(self, *args: Any, **kwargs: Any) -> None: method set_exit_callback (line 245) | def set_exit_callback(self, callback: Callable[[int], None]) -> None: method wait_for_exit (line 267) | def wait_for_exit(self, raise_error: bool = True) -> "Future[int]": method initialize (line 300) | def initialize(cls) -> None: method uninitialize (line 321) | def uninitialize(cls) -> None: method _cleanup (line 330) | def _cleanup(cls) -> None: method _try_cleanup_process (line 335) | def _try_cleanup_process(cls, pid: int) -> None: method _set_returncode (line 346) | def _set_returncode(self, status: int) -> None: FILE: tornado/queues.py class QueueEmpty (line 45) | class QueueEmpty(Exception): class QueueFull (line 51) | class QueueFull(Exception): function _set_timeout (line 57) | def _set_timeout(future: Future, timeout: None | float | datetime.timede... class _QueueIterator (line 69) | class _QueueIterator(Generic[_T]): method __init__ (line 70) | def __init__(self, q: Queue[_T]) -> None: method __anext__ (line 73) | def __anext__(self) -> Awaitable[_T]: class Queue (line 77) | class Queue(Generic[_T]): method __init__ (line 149) | def __init__(self, maxsize: int = 0) -> None: method maxsize (line 167) | def maxsize(self) -> int: method qsize (line 171) | def qsize(self) -> int: method empty (line 175) | def empty(self) -> bool: method full (line 178) | def full(self) -> bool: method put (line 184) | def put( method put_nowait (line 207) | def put_nowait(self, item: _T) -> None: method get (line 223) | def get(self, timeout: float | datetime.timedelta | None = None) -> Aw... method get_nowait (line 252) | def get_nowait(self) -> _T: method task_done (line 270) | def task_done(self) -> None: method join (line 288) | def join( method __aiter__ (line 298) | def __aiter__(self) -> _QueueIterator[_T]: method _init (line 302) | def _init(self) -> None: method _get (line 305) | def _get(self) -> _T: method _put (line 308) | def _put(self, item: _T) -> None: method __put_internal (line 313) | def __put_internal(self, item: _T) -> None: method _consume_expired (line 318) | def _consume_expired(self) -> None: method __repr__ (line 326) | def __repr__(self) -> str: method __str__ (line 329) | def __str__(self) -> str: method _format (line 332) | def _format(self) -> str: class PriorityQueue (line 345) | class PriorityQueue(Queue): method _init (line 374) | def _init(self) -> None: method _put (line 377) | def _put(self, item: _T) -> None: method _get (line 380) | def _get(self) -> _T: # type: ignore[type-var] class LifoQueue (line 384) | class LifoQueue(Queue): method _init (line 411) | def _init(self) -> None: method _put (line 414) | def _put(self, item: _T) -> None: method _get (line 417) | def _get(self) -> _T: # type: ignore[type-var] FILE: tornado/routing.py class Router (line 195) | class Router(httputil.HTTPServerConnectionDelegate): method find_handler (line 198) | def find_handler( method start_request (line 212) | def start_request( class ReversibleRouter (line 218) | class ReversibleRouter(Router): method reverse_url (line 223) | def reverse_url(self, name: str, *args: Any) -> str | None: class _RoutingDelegate (line 234) | class _RoutingDelegate(httputil.HTTPMessageDelegate): method __init__ (line 235) | def __init__( method headers_received (line 243) | def headers_received( method data_received (line 267) | def data_received(self, chunk: bytes) -> Awaitable[None] | None: method finish (line 271) | def finish(self) -> None: method on_connection_close (line 275) | def on_connection_close(self) -> None: class _DefaultMessageDelegate (line 280) | class _DefaultMessageDelegate(httputil.HTTPMessageDelegate): method __init__ (line 281) | def __init__(self, connection: httputil.HTTPConnection) -> None: method finish (line 284) | def finish(self) -> None: class RuleRouter (line 305) | class RuleRouter(Router): method __init__ (line 308) | def __init__(self, rules: _RuleList | None = None) -> None: method add_rules (line 339) | def add_rules(self, rules: _RuleList) -> None: method process_rule (line 355) | def process_rule(self, rule: "Rule") -> "Rule": method find_handler (line 363) | def find_handler( method get_target_delegate (line 381) | def get_target_delegate( class ReversibleRuleRouter (line 409) | class ReversibleRuleRouter(ReversibleRouter, RuleRouter): method __init__ (line 417) | def __init__(self, rules: _RuleList | None = None) -> None: method process_rule (line 421) | def process_rule(self, rule: "Rule") -> "Rule": method reverse_url (line 433) | def reverse_url(self, name: str, *args: Any) -> str | None: class Rule (line 446) | class Rule: method __init__ (line 449) | def __init__( method reverse (line 482) | def reverse(self, *args: Any) -> str | None: method __repr__ (line 485) | def __repr__(self) -> str: class Matcher (line 495) | class Matcher: method match (line 498) | def match(self, request: httputil.HTTPServerRequest) -> dict[str, Any]... method reverse (line 510) | def reverse(self, *args: Any) -> str | None: class AnyMatches (line 515) | class AnyMatches(Matcher): method match (line 518) | def match(self, request: httputil.HTTPServerRequest) -> dict[str, Any]... class HostMatches (line 522) | class HostMatches(Matcher): method __init__ (line 525) | def __init__(self, host_pattern: str | Pattern) -> None: method match (line 533) | def match(self, request: httputil.HTTPServerRequest) -> dict[str, Any]... class DefaultHostMatches (line 540) | class DefaultHostMatches(Matcher): method __init__ (line 545) | def __init__(self, application: Any, host_pattern: Pattern) -> None: method match (line 549) | def match(self, request: httputil.HTTPServerRequest) -> dict[str, Any]... class PathMatches (line 557) | class PathMatches(Matcher): method __init__ (line 560) | def __init__(self, path_pattern: str | Pattern) -> None: method match (line 575) | def match(self, request: httputil.HTTPServerRequest) -> dict[str, Any]... method reverse (line 598) | def reverse(self, *args: Any) -> str | None: method _find_groups (line 613) | def _find_groups(self) -> tuple[str | None, int | None]: class URLSpec (line 654) | class URLSpec(Rule): method __init__ (line 662) | def __init__( method __repr__ (line 693) | def __repr__(self) -> str: function _unquote_or_none (line 704) | def _unquote_or_none(s: str) -> bytes: function _unquote_or_none (line 709) | def _unquote_or_none(s: None) -> None: function _unquote_or_none (line 713) | def _unquote_or_none(s: str | None) -> bytes | None: FILE: tornado/simple_httpclient.py class HTTPTimeoutError (line 39) | class HTTPTimeoutError(HTTPError): method __init__ (line 48) | def __init__(self, message: str) -> None: method __str__ (line 51) | def __str__(self) -> str: class HTTPStreamClosedError (line 55) | class HTTPStreamClosedError(HTTPError): method __init__ (line 67) | def __init__(self, message: str) -> None: method __str__ (line 70) | def __str__(self) -> str: class SimpleAsyncHTTPClient (line 74) | class SimpleAsyncHTTPClient(AsyncHTTPClient): method initialize (line 113) | def initialize( # type: ignore method close (line 151) | def close(self) -> None: method fetch_impl (line 157) | def fetch_impl( method _process_queue (line 184) | def _process_queue(self) -> None: method _connection_class (line 194) | def _connection_class(self) -> type: method _handle_request (line 197) | def _handle_request( method _release_fetch (line 214) | def _release_fetch(self, key: object) -> None: method _remove_timeout (line 218) | def _remove_timeout(self, key: object) -> None: method _on_timeout (line 225) | def _on_timeout(self, key: object, info: str | None = None) -> None: class _HTTPConnection (line 247) | class _HTTPConnection(httputil.HTTPMessageDelegate): method __init__ (line 250) | def __init__( method run (line 283) | async def run(self) -> None: method _get_ssl_options (line 444) | def _get_ssl_options(self, scheme: str) -> None | dict[str, Any] | ssl... method _on_timeout (line 473) | def _on_timeout(self, info: str | None = None) -> None: method _remove_timeout (line 487) | def _remove_timeout(self) -> None: method _create_connection (line 492) | def _create_connection(self, stream: IOStream) -> HTTP1Connection: method _write_body (line 507) | async def _write_body(self, start_read: bool) -> None: method _release (line 522) | def _release(self) -> None: method _run_callback (line 528) | def _run_callback(self, response: HTTPResponse) -> None: method _handle_exception (line 535) | def _handle_exception( method on_connection_close (line 571) | def on_connection_close(self) -> None: method headers_received (line 581) | async def headers_received( method _should_follow_redirect (line 604) | def _should_follow_redirect(self) -> bool: method finish (line 615) | def finish(self) -> None: method _on_end_request (line 680) | def _on_end_request(self) -> None: method data_received (line 683) | def data_received(self, chunk: bytes) -> Awaitable[None] | None: FILE: tornado/speedups.c function PyObject (line 5) | static PyObject* websocket_mask(PyObject* self, PyObject* args) { function speedups_exec (line 54) | static int speedups_exec(PyObject *module) { type PyModuleDef (line 74) | struct PyModuleDef function PyMODINIT_FUNC (line 83) | PyMODINIT_FUNC FILE: tornado/speedups.pyi function websocket_mask (line 1) | def websocket_mask(mask: bytes, data: bytes) -> bytes: ... FILE: tornado/tcpclient.py class _Connector (line 36) | class _Connector: method __init__ (line 54) | def __init__( method split (line 73) | def split( method start (line 97) | def start( method try_connect (line 108) | def try_connect(self, addrs: Iterator[tuple[socket.AddressFamily, tupl... method on_connect_done (line 126) | def on_connect_done( method set_timeout (line 158) | def set_timeout(self, timeout: float) -> None: method on_timeout (line 163) | def on_timeout(self) -> None: method clear_timeout (line 168) | def clear_timeout(self) -> None: method set_connect_timeout (line 172) | def set_connect_timeout(self, connect_timeout: float | datetime.timede... method on_connect_timeout (line 177) | def on_connect_timeout(self) -> None: method clear_timeouts (line 182) | def clear_timeouts(self) -> None: method close_streams (line 188) | def close_streams(self) -> None: class TCPClient (line 193) | class TCPClient: method __init__ (line 200) | def __init__(self, resolver: Resolver | None = None) -> None: method close (line 208) | def close(self) -> None: method connect (line 212) | async def connect( method _create_stream (line 288) | def _create_stream( FILE: tornado/tcpserver.py class TCPServer (line 38) | class TCPServer: method __init__ (line 119) | def __init__( method listen (line 154) | def listen( method add_sockets (line 188) | def add_sockets(self, sockets: Iterable[socket.socket]) -> None: method add_socket (line 203) | def add_socket(self, socket: socket.socket) -> None: method bind (line 207) | def bind( method start (line 259) | def start( method stop (line 301) | def stop(self) -> None: method handle_stream (line 316) | def handle_stream(self, stream: IOStream, address: tuple) -> Awaitable... method _handle_connection (line 333) | def _handle_connection(self, connection: socket.socket, address: Any) ... FILE: tornado/template.py class _UnsetMarker (line 217) | class _UnsetMarker: function filter_whitespace (line 224) | def filter_whitespace(mode: str, text: str) -> str: class Template (line 249) | class Template: method __init__ (line 259) | def __init__( method generate (line 334) | def generate(self, **kwargs: Any) -> bytes: method _generate_python (line 361) | def _generate_python(self, loader: Optional["BaseLoader"]) -> str: method _get_ancestors (line 376) | def _get_ancestors(self, loader: Optional["BaseLoader"]) -> list["_Fil... class BaseLoader (line 389) | class BaseLoader: method __init__ (line 397) | def __init__( method reset (line 429) | def reset(self) -> None: method resolve_path (line 434) | def resolve_path(self, name: str, parent_path: str | None = None) -> str: method load (line 438) | def load(self, name: str, parent_path: str | None = None) -> Template: method _create_template (line 446) | def _create_template(self, name: str) -> Template: class Loader (line 450) | class Loader(BaseLoader): method __init__ (line 453) | def __init__(self, root_directory: str, **kwargs: Any) -> None: method resolve_path (line 457) | def resolve_path(self, name: str, parent_path: str | None = None) -> str: method _create_template (line 471) | def _create_template(self, name: str) -> Template: class DictLoader (line 478) | class DictLoader(BaseLoader): method __init__ (line 481) | def __init__(self, dict: dict[str, str], **kwargs: Any) -> None: method resolve_path (line 485) | def resolve_path(self, name: str, parent_path: str | None = None) -> str: method _create_template (line 496) | def _create_template(self, name: str) -> Template: class _Node (line 500) | class _Node: method each_child (line 501) | def each_child(self) -> Iterable["_Node"]: method generate (line 504) | def generate(self, writer: "_CodeWriter") -> None: method find_named_blocks (line 507) | def find_named_blocks( class _File (line 514) | class _File(_Node): method __init__ (line 515) | def __init__(self, template: Template, body: "_ChunkList") -> None: method generate (line 520) | def generate(self, writer: "_CodeWriter") -> None: method each_child (line 528) | def each_child(self) -> Iterable["_Node"]: class _ChunkList (line 532) | class _ChunkList(_Node): method __init__ (line 533) | def __init__(self, chunks: list[_Node]) -> None: method generate (line 536) | def generate(self, writer: "_CodeWriter") -> None: method each_child (line 540) | def each_child(self) -> Iterable["_Node"]: class _NamedBlock (line 544) | class _NamedBlock(_Node): method __init__ (line 545) | def __init__(self, name: str, body: _Node, template: Template, line: i... method each_child (line 551) | def each_child(self) -> Iterable["_Node"]: method generate (line 554) | def generate(self, writer: "_CodeWriter") -> None: method find_named_blocks (line 559) | def find_named_blocks( class _ExtendsBlock (line 566) | class _ExtendsBlock(_Node): method __init__ (line 567) | def __init__(self, name: str) -> None: class _IncludeBlock (line 571) | class _IncludeBlock(_Node): method __init__ (line 572) | def __init__(self, name: str, reader: "_TemplateReader", line: int) ->... method find_named_blocks (line 577) | def find_named_blocks( method generate (line 584) | def generate(self, writer: "_CodeWriter") -> None: class _ApplyBlock (line 591) | class _ApplyBlock(_Node): method __init__ (line 592) | def __init__(self, method: str, line: int, body: _Node) -> None: method each_child (line 597) | def each_child(self) -> Iterable["_Node"]: method generate (line 600) | def generate(self, writer: "_CodeWriter") -> None: class _ControlBlock (line 614) | class _ControlBlock(_Node): method __init__ (line 615) | def __init__(self, statement: str, line: int, body: _Node) -> None: method each_child (line 620) | def each_child(self) -> Iterable[_Node]: method generate (line 623) | def generate(self, writer: "_CodeWriter") -> None: class _IntermediateControlBlock (line 631) | class _IntermediateControlBlock(_Node): method __init__ (line 632) | def __init__(self, statement: str, line: int) -> None: method generate (line 636) | def generate(self, writer: "_CodeWriter") -> None: class _Statement (line 642) | class _Statement(_Node): method __init__ (line 643) | def __init__(self, statement: str, line: int) -> None: method generate (line 647) | def generate(self, writer: "_CodeWriter") -> None: class _Expression (line 651) | class _Expression(_Node): method __init__ (line 652) | def __init__(self, expression: str, line: int, raw: bool = False) -> N... method generate (line 657) | def generate(self, writer: "_CodeWriter") -> None: class _Module (line 674) | class _Module(_Expression): method __init__ (line 675) | def __init__(self, expression: str, line: int) -> None: class _Text (line 679) | class _Text(_Node): method __init__ (line 680) | def __init__(self, value: str, line: int, whitespace: str) -> None: method generate (line 685) | def generate(self, writer: "_CodeWriter") -> None: class ParseError (line 697) | class ParseError(Exception): method __init__ (line 707) | def __init__( method __str__ (line 716) | def __str__(self) -> str: class _CodeWriter (line 720) | class _CodeWriter: method __init__ (line 721) | def __init__( method indent_size (line 736) | def indent_size(self) -> int: method indent (line 739) | def indent(self) -> "ContextManager": method include (line 751) | def include(self, template: Template, line: int) -> "ContextManager": method write_line (line 764) | def write_line( class _TemplateReader (line 778) | class _TemplateReader: method __init__ (line 779) | def __init__(self, name: str, text: str, whitespace: str) -> None: method find (line 786) | def find(self, needle: str, start: int = 0, end: int | None = None) ->... method consume (line 800) | def consume(self, count: int | None = None) -> str: method remaining (line 809) | def remaining(self) -> int: method __len__ (line 812) | def __len__(self) -> int: method __getitem__ (line 815) | def __getitem__(self, key: int | slice) -> str: method __str__ (line 831) | def __str__(self) -> str: method raise_parse_error (line 834) | def raise_parse_error(self, msg: str) -> None: function _format_code (line 838) | def _format_code(code: str) -> str: function _parse (line 844) | def _parse( FILE: tornado/test/asyncio_test.py class AsyncIOLoopTest (line 39) | class AsyncIOLoopTest(AsyncTestCase): method asyncio_loop (line 41) | def asyncio_loop(self): method test_asyncio_callback (line 44) | def test_asyncio_callback(self): method test_asyncio_future (line 53) | def test_asyncio_future(self): method test_asyncio_yield_from (line 62) | def test_asyncio_yield_from(self): method test_asyncio_adapter (line 72) | def test_asyncio_adapter(self): method test_add_thread_close_idempotent (line 112) | def test_add_thread_close_idempotent(self): class LeakTest (line 118) | class LeakTest(unittest.TestCase): method setUp (line 119) | def setUp(self): method tearDown (line 123) | def tearDown(self): method test_ioloop_close_leak (line 132) | def test_ioloop_close_leak(self): method test_asyncio_close_leak (line 143) | def test_asyncio_close_leak(self): class SelectorThreadLeakTest (line 158) | class SelectorThreadLeakTest(unittest.TestCase): method setUp (line 160) | def setUp(self): method assert_no_thread_leak (line 166) | def assert_no_thread_leak(self): method dummy_tornado_coroutine (line 180) | async def dummy_tornado_coroutine(self): method test_asyncio_run (line 184) | def test_asyncio_run(self): method test_asyncio_manual (line 190) | def test_asyncio_manual(self): method test_tornado (line 199) | def test_tornado(self): class AnyThreadEventLoopPolicyTest (line 209) | class AnyThreadEventLoopPolicyTest(unittest.TestCase): method setUp (line 210) | def setUp(self): method tearDown (line 220) | def tearDown(self): method get_event_loop_on_thread (line 224) | def get_event_loop_on_thread(self): method test_asyncio_accessor (line 240) | def test_asyncio_accessor(self): method test_tornado_accessor (line 258) | def test_tornado_accessor(self): class SelectorThreadContextvarsTest (line 273) | class SelectorThreadContextvarsTest(AsyncHTTPTestCase): method get_app (line 279) | def get_app(self) -> Application: method test_context_vars (line 297) | def test_context_vars(self): FILE: tornado/test/auth_test.py class OpenIdClientLoginHandler (line 25) | class OpenIdClientLoginHandler(RequestHandler, OpenIdMixin): method initialize (line 26) | def initialize(self, test): method get (line 30) | def get(self): class OpenIdServerAuthenticateHandler (line 43) | class OpenIdServerAuthenticateHandler(RequestHandler): method post (line 44) | def post(self): class OAuth1ClientLoginHandler (line 50) | class OAuth1ClientLoginHandler(RequestHandler, OAuthMixin): method initialize (line 51) | def initialize(self, test, version): method _oauth_consumer_token (line 57) | def _oauth_consumer_token(self): method get (line 61) | def get(self): method _oauth_get_user_future (line 73) | def _oauth_get_user_future(self, access_token): class OAuth1ClientLoginCoroutineHandler (line 81) | class OAuth1ClientLoginCoroutineHandler(OAuth1ClientLoginHandler): method get (line 85) | def get(self): class OAuth1ClientRequestParametersHandler (line 98) | class OAuth1ClientRequestParametersHandler(RequestHandler, OAuthMixin): method initialize (line 99) | def initialize(self, version): method _oauth_consumer_token (line 102) | def _oauth_consumer_token(self): method get (line 105) | def get(self): class OAuth1ServerRequestTokenHandler (line 114) | class OAuth1ServerRequestTokenHandler(RequestHandler): method get (line 115) | def get(self): class OAuth1ServerAccessTokenHandler (line 119) | class OAuth1ServerAccessTokenHandler(RequestHandler): method get (line 120) | def get(self): class OAuth2ClientLoginHandler (line 124) | class OAuth2ClientLoginHandler(RequestHandler, OAuth2Mixin): method initialize (line 125) | def initialize(self, test): method get (line 128) | def get(self): class FacebookClientLoginHandler (line 133) | class FacebookClientLoginHandler(RequestHandler, FacebookGraphMixin): method initialize (line 134) | def initialize(self, test): method get (line 140) | def get(self): class FacebookServerAccessTokenHandler (line 157) | class FacebookServerAccessTokenHandler(RequestHandler): method get (line 158) | def get(self): class FacebookServerMeHandler (line 162) | class FacebookServerMeHandler(RequestHandler): method get (line 163) | def get(self): class TwitterClientHandler (line 167) | class TwitterClientHandler(RequestHandler, TwitterMixin): method initialize (line 168) | def initialize(self, test): method get_auth_http_client (line 175) | def get_auth_http_client(self): class TwitterClientLoginHandler (line 179) | class TwitterClientLoginHandler(TwitterClientHandler): method get (line 181) | def get(self): class TwitterClientAuthenticateHandler (line 191) | class TwitterClientAuthenticateHandler(TwitterClientHandler): method get (line 195) | def get(self): class TwitterClientLoginGenCoroutineHandler (line 205) | class TwitterClientLoginGenCoroutineHandler(TwitterClientHandler): method get (line 207) | def get(self): class TwitterClientShowUserHandler (line 217) | class TwitterClientShowUserHandler(TwitterClientHandler): method get (line 219) | def get(self): class TwitterServerAccessTokenHandler (line 236) | class TwitterServerAccessTokenHandler(RequestHandler): method get (line 237) | def get(self): class TwitterServerShowUserHandler (line 241) | class TwitterServerShowUserHandler(RequestHandler): method get (line 242) | def get(self, screen_name): class TwitterServerVerifyCredentialsHandler (line 255) | class TwitterServerVerifyCredentialsHandler(RequestHandler): method get (line 256) | def get(self): class AuthTest (line 267) | class AuthTest(AsyncHTTPTestCase): method get_app (line 268) | def get_app(self): method test_openid_redirect (line 336) | def test_openid_redirect(self): method test_openid_get_user (line 341) | def test_openid_get_user(self): method test_oauth10_redirect (line 352) | def test_oauth10_redirect(self): method test_oauth10_get_user (line 367) | def test_oauth10_get_user(self): method test_oauth10_request_parameters (line 377) | def test_oauth10_request_parameters(self): method test_oauth10a_redirect (line 386) | def test_oauth10a_redirect(self): method test_oauth10a_redirect_error (line 401) | def test_oauth10a_redirect_error(self): method test_oauth10a_get_user (line 408) | def test_oauth10a_get_user(self): method test_oauth10a_request_parameters (line 418) | def test_oauth10a_request_parameters(self): method test_oauth10a_get_user_coroutine_exception (line 427) | def test_oauth10a_get_user_coroutine_exception(self): method test_oauth2_redirect (line 434) | def test_oauth2_redirect(self): method test_facebook_login (line 439) | def test_facebook_login(self): method base_twitter_redirect (line 451) | def base_twitter_redirect(self, url): method test_twitter_redirect (line 467) | def test_twitter_redirect(self): method test_twitter_redirect_gen_coroutine (line 470) | def test_twitter_redirect_gen_coroutine(self): method test_twitter_authenticate_redirect (line 473) | def test_twitter_authenticate_redirect(self): method test_twitter_get_user (line 489) | def test_twitter_get_user(self): method test_twitter_show_user (line 510) | def test_twitter_show_user(self): method test_twitter_show_user_error (line 517) | def test_twitter_show_user_error(self): class GoogleLoginHandler (line 523) | class GoogleLoginHandler(RequestHandler, GoogleOAuth2Mixin): method initialize (line 524) | def initialize(self, test): method get (line 531) | def get(self): class GoogleOAuth2AuthorizeHandler (line 553) | class GoogleOAuth2AuthorizeHandler(RequestHandler): method get (line 554) | def get(self): class GoogleOAuth2TokenHandler (line 560) | class GoogleOAuth2TokenHandler(RequestHandler): method post (line 561) | def post(self): class GoogleOAuth2UserinfoHandler (line 569) | class GoogleOAuth2UserinfoHandler(RequestHandler): method get (line 570) | def get(self): class GoogleOAuth2Test (line 576) | class GoogleOAuth2Test(AsyncHTTPTestCase): method get_app (line 577) | def get_app(self): method test_google_login (line 593) | def test_google_login(self): FILE: tornado/test/autoreload_test.py class AutoreloadTest (line 12) | class AutoreloadTest(unittest.TestCase): method setUp (line 13) | def setUp(self): method tearDown (line 41) | def tearDown(self): method write_files (line 53) | def write_files(self, tree, base_path=None): method run_subprocess (line 69) | def run_subprocess(self, args): method test_reload (line 103) | def test_reload(self): method test_reload_wrapper_preservation (line 184) | def test_reload_wrapper_preservation(self): method test_reload_wrapper_args (line 215) | def test_reload_wrapper_args(self): method test_reload_wrapper_until_success (line 244) | def test_reload_wrapper_until_success(self): FILE: tornado/test/circlerefs_test.py function find_circular_references (line 24) | def find_circular_references(garbage): function assert_no_cycle_garbage (line 64) | def assert_no_cycle_garbage(): class CircleRefsTest (line 104) | class CircleRefsTest(unittest.TestCase): method test_known_leak (line 105) | def test_known_leak(self): method run_handler (line 139) | async def run_handler(self, handler_class): method test_sync_handler (line 161) | def test_sync_handler(self): method test_finish_exception_handler (line 168) | def test_finish_exception_handler(self): method test_coro_handler (line 175) | def test_coro_handler(self): method test_async_handler (line 184) | def test_async_handler(self): method test_run_on_executor (line 192) | def test_run_on_executor(self): FILE: tornado/test/concurrent_test.py class MiscFutureTest (line 34) | class MiscFutureTest(AsyncTestCase): method test_future_set_result_unless_cancelled (line 35) | def test_future_set_result_unless_cancelled(self): class ChainFutureTest (line 50) | class ChainFutureTest(AsyncTestCase): method test_asyncio_futures (line 52) | async def test_asyncio_futures(self): method test_concurrent_futures (line 61) | async def test_concurrent_futures(self): class CapServer (line 79) | class CapServer(TCPServer): method handle_stream (line 81) | def handle_stream(self, stream, address): class CapError (line 92) | class CapError(Exception): class BaseCapClient (line 96) | class BaseCapClient: method __init__ (line 97) | def __init__(self, port): method process_response (line 100) | def process_response(self, data): class GeneratorCapClient (line 111) | class GeneratorCapClient(BaseCapClient): method capitalize (line 113) | def capitalize(self, request_data): class GeneratorCapClientTest (line 126) | class GeneratorCapClientTest(AsyncTestCase): method setUp (line 127) | def setUp(self): method tearDown (line 134) | def tearDown(self): method test_future (line 138) | def test_future(self): method test_future_error (line 144) | def test_future_error(self): method test_generator (line 150) | def test_generator(self): method test_generator_error (line 158) | def test_generator_error(self): class RunOnExecutorTest (line 167) | class RunOnExecutorTest(AsyncTestCase): method test_no_calling (line 169) | def test_no_calling(self): method test_call_with_no_args (line 183) | def test_call_with_no_args(self): method test_call_with_executor (line 197) | def test_call_with_executor(self): method test_async_await (line 211) | def test_async_await(self): FILE: tornado/test/curl_httpclient_test.py class CurlHTTPClientCommonTestCase (line 20) | class CurlHTTPClientCommonTestCase(httpclient_test.HTTPClientCommonTestC... method get_http_client (line 21) | def get_http_client(self): class DigestAuthHandler (line 28) | class DigestAuthHandler(RequestHandler): method initialize (line 29) | def initialize(self, username, password): method get (line 33) | def get(self): class CustomReasonHandler (line 69) | class CustomReasonHandler(RequestHandler): method get (line 70) | def get(self): class CustomFailReasonHandler (line 74) | class CustomFailReasonHandler(RequestHandler): method get (line 75) | def get(self): class CurlHTTPClientTestCase (line 80) | class CurlHTTPClientTestCase(AsyncHTTPTestCase): method setUp (line 81) | def setUp(self): method get_app (line 85) | def get_app(self): method create_client (line 99) | def create_client(self, **kwargs): method test_digest_auth (line 104) | def test_digest_auth(self): method test_custom_reason (line 110) | def test_custom_reason(self): method test_fail_custom_reason (line 114) | def test_fail_custom_reason(self): method test_digest_auth_non_ascii (line 118) | def test_digest_auth_non_ascii(self): method test_streaming_callback_not_permitted (line 127) | def test_streaming_callback_not_permitted(self): FILE: tornado/test/escape_test.py class EscapeTestCase (line 213) | class EscapeTestCase(unittest.TestCase): method test_linkify (line 214) | def test_linkify(self): method test_xhtml_escape (line 219) | def test_xhtml_escape(self): method test_xhtml_unescape_numeric (line 233) | def test_xhtml_unescape_numeric(self): method test_url_escape_unicode (line 246) | def test_url_escape_unicode(self): method test_url_unescape_unicode (line 257) | def test_url_unescape_unicode(self): method test_url_escape_quote_plus (line 270) | def test_url_escape_quote_plus(self): method test_escape_return_types (line 283) | def test_escape_return_types(self): method test_json_decode (line 289) | def test_json_decode(self): method test_json_encode (line 298) | def test_json_encode(self): method test_squeeze (line 307) | def test_squeeze(self): method test_recursive_unicode (line 313) | def test_recursive_unicode(self): FILE: tornado/test/gen_test.py class GenBasicTest (line 20) | class GenBasicTest(AsyncTestCase): method delay (line 22) | def delay(self, iterations, arg): method async_future (line 29) | def async_future(self, result): method async_exception (line 34) | def async_exception(self, e): method add_one_async (line 39) | def add_one_async(self, x): method test_no_yield (line 43) | def test_no_yield(self): method test_exception_phase1 (line 50) | def test_exception_phase1(self): method test_exception_phase2 (line 57) | def test_exception_phase2(self): method test_bogus_yield (line 65) | def test_bogus_yield(self): method test_bogus_yield_tuple (line 72) | def test_bogus_yield_tuple(self): method test_reuse (line 79) | def test_reuse(self): method test_none (line 87) | def test_none(self): method test_multi (line 94) | def test_multi(self): method test_multi_dict (line 102) | def test_multi_dict(self): method test_multi_delayed (line 110) | def test_multi_delayed(self): method test_multi_dict_delayed (line 121) | def test_multi_dict_delayed(self): method test_multi_performance (line 133) | def test_multi_performance(self): method test_multi_empty (line 143) | def test_multi_empty(self): method test_future (line 151) | def test_future(self): method test_multi_future (line 156) | def test_multi_future(self): method test_multi_future_duplicate (line 161) | def test_multi_future_duplicate(self): method test_multi_dict_future (line 169) | def test_multi_dict_future(self): method test_multi_exceptions (line 174) | def test_multi_exceptions(self): method test_multi_future_exceptions (line 202) | def test_multi_future_exceptions(self): method test_sync_raise_return (line 225) | def test_sync_raise_return(self): method test_async_raise_return (line 232) | def test_async_raise_return(self): method test_sync_raise_return_value (line 240) | def test_sync_raise_return_value(self): method test_sync_raise_return_value_tuple (line 247) | def test_sync_raise_return_value_tuple(self): method test_async_raise_return_value (line 254) | def test_async_raise_return_value(self): method test_async_raise_return_value_tuple (line 262) | def test_async_raise_return_value_tuple(self): class GenCoroutineTest (line 271) | class GenCoroutineTest(AsyncTestCase): method setUp (line 272) | def setUp(self): method tearDown (line 279) | def tearDown(self): method test_attributes (line 283) | def test_attributes(self): method test_is_coroutine_function (line 294) | def test_is_coroutine_function(self): method test_sync_gen_return (line 306) | def test_sync_gen_return(self): method test_async_gen_return (line 316) | def test_async_gen_return(self): method test_sync_return (line 327) | def test_sync_return(self): method test_async_return (line 337) | def test_async_return(self): method test_async_early_return (line 348) | def test_async_early_return(self): method test_async_await (line 363) | def test_async_await(self): method test_asyncio_sleep_zero (line 381) | def test_asyncio_sleep_zero(self): method test_async_await_mixed_multi_native_future (line 395) | def test_async_await_mixed_multi_native_future(self): method test_async_with_timeout (line 414) | def test_async_with_timeout(self): method test_sync_return_no_value (line 423) | def test_sync_return_no_value(self): method test_async_return_no_value (line 433) | def test_async_return_no_value(self): method test_sync_raise (line 444) | def test_sync_raise(self): method test_async_raise (line 458) | def test_async_raise(self): method test_replace_yieldpoint_exception (line 470) | def test_replace_yieldpoint_exception(self): method test_swallow_yieldpoint_exception (line 490) | def test_swallow_yieldpoint_exception(self): method test_moment (line 509) | def test_moment(self): method test_sleep (line 536) | def test_sleep(self): method test_py3_leak_exception_context (line 541) | def test_py3_leak_exception_context(self): method test_coroutine_refcounting (line 564) | def test_coroutine_refcounting(self): method test_asyncio_future_debug_info (line 593) | def test_asyncio_future_debug_info(self): method test_asyncio_gather (line 612) | def test_asyncio_gather(self): class GenCoroutineSequenceHandler (line 625) | class GenCoroutineSequenceHandler(RequestHandler): method get (line 627) | def get(self): class GenCoroutineUnfinishedSequenceHandler (line 636) | class GenCoroutineUnfinishedSequenceHandler(RequestHandler): method get (line 638) | def get(self): class UndecoratedCoroutinesHandler (line 649) | class UndecoratedCoroutinesHandler(RequestHandler): method prepare (line 651) | def prepare(self): method get (line 657) | def get(self): class AsyncPrepareErrorHandler (line 665) | class AsyncPrepareErrorHandler(RequestHandler): method prepare (line 667) | def prepare(self): method get (line 671) | def get(self): class NativeCoroutineHandler (line 675) | class NativeCoroutineHandler(RequestHandler): method get (line 676) | async def get(self): class GenWebTest (line 681) | class GenWebTest(AsyncHTTPTestCase): method get_app (line 682) | def get_app(self): method test_coroutine_sequence_handler (line 696) | def test_coroutine_sequence_handler(self): method test_coroutine_unfinished_sequence_handler (line 700) | def test_coroutine_unfinished_sequence_handler(self): method test_undecorated_coroutines (line 704) | def test_undecorated_coroutines(self): method test_async_prepare_error_handler (line 708) | def test_async_prepare_error_handler(self): method test_native_coroutine_handler (line 712) | def test_native_coroutine_handler(self): class WithTimeoutTest (line 718) | class WithTimeoutTest(AsyncTestCase): method test_timeout (line 720) | def test_timeout(self): method test_completes_before_timeout (line 725) | def test_completes_before_timeout(self): method test_fails_before_timeout (line 734) | def test_fails_before_timeout(self): method test_already_resolved (line 744) | def test_already_resolved(self): method test_timeout_concurrent_future (line 751) | def test_timeout_concurrent_future(self): method test_completed_concurrent_future (line 760) | def test_completed_concurrent_future(self): method test_normal_concurrent_future (line 773) | def test_normal_concurrent_future(self): class WaitIteratorTest (line 782) | class WaitIteratorTest(AsyncTestCase): method test_empty_iterator (line 784) | def test_empty_iterator(self): method test_already_done (line 795) | def test_already_done(self): method finish_coroutines (line 847) | def finish_coroutines(self, iteration, futures): method test_iterator (line 860) | def test_iterator(self): method test_iterator_async_await (line 886) | def test_iterator_async_await(self): method test_no_ref (line 923) | def test_no_ref(self): class RunnerGCTest (line 933) | class RunnerGCTest(AsyncTestCase): method is_pypy3 (line 934) | def is_pypy3(self): method test_gc (line 938) | def test_gc(self): method test_gc_infinite_coro (line 956) | def test_gc_infinite_coro(self): method test_gc_infinite_async_await (line 992) | def test_gc_infinite_async_await(self): method test_multi_moment (line 1028) | def test_multi_moment(self): class ContextVarsTest (line 1044) | class ContextVarsTest(AsyncTestCase): method native_root (line 1045) | async def native_root(self, x): method gen_root (line 1050) | def gen_root(self, x): method inner (line 1055) | async def inner(self, x): method gen_inner (line 1072) | def gen_inner(self, x): method thread_inner (line 1077) | def thread_inner(self, x): method test_propagate (line 1081) | def test_propagate(self): method test_reset (line 1092) | def test_reset(self): method test_propagate_to_first_yield_with_native_async_function (line 1100) | def test_propagate_to_first_yield_with_native_async_function(self): FILE: tornado/test/http1connection_test.py class HTTP1ConnectionTest (line 11) | class HTTP1ConnectionTest(AsyncTestCase): method setUp (line 14) | def setUp(self): method asyncSetUp (line 19) | def asyncSetUp(self): method test_http10_no_content_length (line 36) | def test_http10_no_content_length(self): FILE: tornado/test/httpclient_test.py class HelloWorldHandler (line 34) | class HelloWorldHandler(RequestHandler): method get (line 35) | def get(self): class PostHandler (line 41) | class PostHandler(RequestHandler): method post (line 42) | def post(self): class PutHandler (line 49) | class PutHandler(RequestHandler): method put (line 50) | def put(self): class RedirectHandler (line 55) | class RedirectHandler(RequestHandler): method prepare (line 56) | def prepare(self): class RedirectWithoutLocationHandler (line 63) | class RedirectWithoutLocationHandler(RequestHandler): method prepare (line 64) | def prepare(self): class ChunkHandler (line 70) | class ChunkHandler(RequestHandler): method get (line 72) | def get(self): class AuthHandler (line 80) | class AuthHandler(RequestHandler): method get (line 81) | def get(self): class CountdownHandler (line 85) | class CountdownHandler(RequestHandler): method get (line 86) | def get(self, count): class EchoPostHandler (line 94) | class EchoPostHandler(RequestHandler): method post (line 95) | def post(self): class UserAgentHandler (line 99) | class UserAgentHandler(RequestHandler): method get (line 100) | def get(self): class ContentLength304Handler (line 104) | class ContentLength304Handler(RequestHandler): method get (line 105) | def get(self): method _clear_representation_headers (line 109) | def _clear_representation_headers(self): class PatchHandler (line 115) | class PatchHandler(RequestHandler): method patch (line 116) | def patch(self): class AllMethodsHandler (line 121) | class AllMethodsHandler(RequestHandler): method method (line 124) | def method(self): class SetHeaderHandler (line 131) | class SetHeaderHandler(RequestHandler): method get (line 132) | def get(self): class InvalidGzipHandler (line 139) | class InvalidGzipHandler(RequestHandler): method get (line 140) | def get(self) -> None: class HeaderEncodingHandler (line 152) | class HeaderEncodingHandler(RequestHandler): method get (line 153) | def get(self): class HTTPClientCommonTestCase (line 162) | class HTTPClientCommonTestCase(AsyncHTTPTestCase): method get_app (line 163) | def get_app(self): method test_patch_receives_payload (line 186) | def test_patch_receives_payload(self): method test_hello_world (line 192) | def test_hello_world(self): method test_streaming_callback (line 203) | def test_streaming_callback(self): method test_post (line 211) | def test_post(self): method test_chunked (line 216) | def test_chunked(self): method test_chunked_close (line 225) | def test_chunked_close(self): method test_basic_auth (line 258) | def test_basic_auth(self): method test_basic_auth_explicit_mode (line 267) | def test_basic_auth_explicit_mode(self): method test_basic_auth_unicode (line 278) | def test_basic_auth_unicode(self): method test_unsupported_auth_mode (line 293) | def test_unsupported_auth_mode(self): method test_follow_redirect (line 307) | def test_follow_redirect(self): method test_redirect_without_location (line 317) | def test_redirect_without_location(self): method test_redirect_put_with_body (line 325) | def test_redirect_put_with_body(self): method test_redirect_put_without_body (line 331) | def test_redirect_put_without_body(self): method test_method_after_redirect (line 340) | def test_method_after_redirect(self): method test_credentials_in_url (line 370) | def test_credentials_in_url(self): method test_body_encoding (line 375) | def test_body_encoding(self): method test_types (line 411) | def test_types(self): method test_gzip (line 418) | def test_gzip(self): method test_invalid_gzip (line 435) | def test_invalid_gzip(self): method test_header_callback (line 448) | def test_header_callback(self): method test_header_callback_to_parse_line (line 479) | def test_header_callback_to_parse_line(self): method test_configure_defaults (line 497) | def test_configure_defaults(self): method test_header_types (line 507) | def test_header_types(self): method test_multi_line_headers (line 524) | def test_multi_line_headers(self): method test_header_encoding (line 553) | def test_header_encoding(self): method test_304_with_content_length (line 562) | def test_304_with_content_length(self): method test_future_interface (line 572) | def test_future_interface(self): method test_future_http_error (line 577) | def test_future_http_error(self): method test_future_http_error_no_raise (line 586) | def test_future_http_error_no_raise(self): method test_reuse_request_from_response (line 593) | def test_reuse_request_from_response(self): method test_bind_source_ip (line 606) | def test_bind_source_ip(self): method test_all_methods (line 620) | def test_all_methods(self): method test_body_sanity_checks (line 634) | def test_body_sanity_checks(self): method test_put_307 (line 682) | def test_put_307(self): method test_non_ascii_header (line 689) | def test_non_ascii_header(self): method test_response_times (line 695) | def test_response_times(self): method test_zero_timeout (line 715) | def test_zero_timeout(self): method test_error_after_cancel (line 726) | def test_error_after_cancel(self): method test_header_crlf (line 739) | def test_header_crlf(self): class RequestProxyTest (line 756) | class RequestProxyTest(unittest.TestCase): method test_request_set (line 757) | def test_request_set(self): method test_default_set (line 763) | def test_default_set(self): method test_both_set (line 769) | def test_both_set(self): method test_neither_set (line 775) | def test_neither_set(self): method test_bad_attribute (line 779) | def test_bad_attribute(self): method test_defaults_none (line 784) | def test_defaults_none(self): class HTTPResponseTestCase (line 789) | class HTTPResponseTestCase(unittest.TestCase): method test_str (line 790) | def test_str(self): class SyncHTTPClientTest (line 799) | class SyncHTTPClientTest(unittest.TestCase): method setUp (line 800) | def setUp(self): method tearDown (line 822) | def tearDown(self): method get_url (line 847) | def get_url(self, path): method test_sync_client (line 850) | def test_sync_client(self): method test_sync_client_error (line 854) | def test_sync_client_error(self): class SyncHTTPClientSubprocessTest (line 862) | class SyncHTTPClientSubprocessTest(unittest.TestCase): method test_destructor_log (line 863) | def test_destructor_log(self): class HTTPRequestTestCase (line 892) | class HTTPRequestTestCase(unittest.TestCase): method test_headers (line 893) | def test_headers(self): method test_headers_setter (line 897) | def test_headers_setter(self): method test_null_headers_setter (line 902) | def test_null_headers_setter(self): method test_body (line 907) | def test_body(self): method test_body_setter (line 911) | def test_body_setter(self): method test_if_modified_since (line 916) | def test_if_modified_since(self): method test_if_modified_since_naive_deprecated (line 923) | def test_if_modified_since_naive_deprecated(self): class HTTPErrorTestCase (line 932) | class HTTPErrorTestCase(unittest.TestCase): method test_copy (line 933) | def test_copy(self): method test_plain_error (line 939) | def test_plain_error(self): method test_error_with_response (line 944) | def test_error_with_response(self): FILE: tornado/test/httpserver_test.py function read_stream_body (line 51) | async def read_stream_body(stream): class HandlerBaseTestCase (line 73) | class HandlerBaseTestCase(AsyncHTTPTestCase): method get_app (line 76) | def get_app(self): method fetch_json (line 79) | def fetch_json(self, *args, **kwargs): class HelloWorldRequestHandler (line 85) | class HelloWorldRequestHandler(RequestHandler): method initialize (line 86) | def initialize(self, protocol="http"): method get (line 89) | def get(self): method post (line 94) | def post(self): class SSLTest (line 98) | class SSLTest(AsyncHTTPSTestCase): method get_app (line 99) | def get_app(self): method get_ssl_options (line 102) | def get_ssl_options(self): method test_ssl (line 108) | def test_ssl(self): method test_large_post (line 112) | def test_large_post(self): method test_non_ssl_request (line 116) | def test_non_ssl_request(self): method test_error_logging (line 130) | def test_error_logging(self): class BadSSLOptionsTest (line 140) | class BadSSLOptionsTest(unittest.TestCase): method test_missing_arguments (line 141) | def test_missing_arguments(self): method test_missing_key (line 150) | def test_missing_key(self): class MultipartTestHandler (line 181) | class MultipartTestHandler(RequestHandler): method post (line 182) | def post(self): class HTTPConnectionTest (line 194) | class HTTPConnectionTest(AsyncHTTPTestCase): method get_handlers (line 195) | def get_handlers(self): method get_app (line 201) | def get_app(self): method raw_fetch (line 204) | def raw_fetch(self, headers, body, newline=b"\r\n"): method test_multipart_form (line 220) | def test_multipart_form(self): method test_newlines (line 249) | def test_newlines(self): method test_100_continue (line 256) | def test_100_continue(self): class EchoHandler (line 286) | class EchoHandler(RequestHandler): method get (line 287) | def get(self): method post (line 290) | def post(self): class TypeCheckHandler (line 294) | class TypeCheckHandler(RequestHandler): method prepare (line 295) | def prepare(self): method post (line 322) | def post(self): method get (line 326) | def get(self): method check_type (line 329) | def check_type(self, name, obj, expected_type): class PostEchoHandler (line 335) | class PostEchoHandler(RequestHandler): method post (line 336) | def post(self, *path_args): class PostEchoGBKHandler (line 340) | class PostEchoGBKHandler(PostEchoHandler): method decode_argument (line 341) | def decode_argument(self, value, name=None): class HTTPServerTest (line 348) | class HTTPServerTest(AsyncHTTPTestCase): method get_app (line 349) | def get_app(self): method test_query_string_encoding (line 360) | def test_query_string_encoding(self): method test_empty_query_string (line 365) | def test_empty_query_string(self): method test_empty_post_parameters (line 370) | def test_empty_post_parameters(self): method test_types (line 375) | def test_types(self): method test_double_slash (line 387) | def test_double_slash(self): method test_post_encodings (line 395) | def test_post_encodings(self): class HTTPServerRawTest (line 413) | class HTTPServerRawTest(AsyncHTTPTestCase): method get_app (line 414) | def get_app(self): method setUp (line 417) | def setUp(self): method tearDown (line 424) | def tearDown(self): method test_empty_request (line 428) | def test_empty_request(self): method test_malformed_first_line_response (line 433) | def test_malformed_first_line_response(self): method test_malformed_first_line_log (line 443) | def test_malformed_first_line_log(self): method test_malformed_headers (line 451) | def test_malformed_headers(self): method test_invalid_host_header_with_whitespace (line 461) | def test_invalid_host_header_with_whitespace(self): method test_chunked_request_body (line 473) | def test_chunked_request_body(self): method test_chunked_request_uppercase (line 494) | def test_chunked_request_uppercase(self): method test_chunked_request_body_invalid_size (line 515) | def test_chunked_request_body_invalid_size(self): method test_chunked_request_body_duplicate_header (line 534) | def test_chunked_request_body_duplicate_header(self): method test_chunked_request_body_unsupported_transfer_encoding (line 558) | def test_chunked_request_body_unsupported_transfer_encoding(self): method test_chunked_request_body_transfer_encoding_and_content_length (line 578) | def test_chunked_request_body_transfer_encoding_and_content_length(self): method test_invalid_content_length (line 602) | def test_invalid_content_length(self): method test_invalid_methods (line 630) | def test_invalid_methods(self): class XHeaderTest (line 662) | class XHeaderTest(HandlerBaseTestCase): class Handler (line 663) | class Handler(RequestHandler): method get (line 664) | def get(self): method get_httpserver_options (line 673) | def get_httpserver_options(self): method test_ip_headers (line 676) | def test_ip_headers(self): method test_trusted_downstream (line 716) | def test_trusted_downstream(self): method test_scheme_headers (line 726) | def test_scheme_headers(self): class SSLXHeaderTest (line 757) | class SSLXHeaderTest(AsyncHTTPSTestCase, HandlerBaseTestCase): method get_app (line 758) | def get_app(self): method get_httpserver_options (line 761) | def get_httpserver_options(self): method test_request_without_xprotocol (line 766) | def test_request_without_xprotocol(self): class ManualProtocolTest (line 780) | class ManualProtocolTest(HandlerBaseTestCase): class Handler (line 781) | class Handler(RequestHandler): method get (line 782) | def get(self): method get_httpserver_options (line 785) | def get_httpserver_options(self): method test_manual_protocol (line 788) | def test_manual_protocol(self): class UnixSocketTest (line 793) | class UnixSocketTest(AsyncTestCase): method setUp (line 806) | def setUp(self): method tearDown (line 812) | def tearDown(self): method test_unix_socket (line 818) | def test_unix_socket(self): method test_unix_socket_bad_request (line 830) | def test_unix_socket_bad_request(self): class UnixSocketTestFile (line 845) | class UnixSocketTestFile(UnixSocketTest): method setUp (line 846) | def setUp(self): method tearDown (line 851) | def tearDown(self): class UnixSocketTestAbstract (line 860) | class UnixSocketTestAbstract(UnixSocketTest): method setUp (line 861) | def setUp(self): class KeepAliveTest (line 866) | class KeepAliveTest(AsyncHTTPTestCase): method get_app (line 873) | def get_app(self): method setUp (line 922) | def setUp(self): method tearDown (line 926) | def tearDown(self): method connect (line 938) | def connect(self): method read_headers (line 943) | def read_headers(self): method read_response (line 951) | def read_response(self): method close (line 956) | def close(self): method test_two_requests (line 961) | def test_two_requests(self): method test_request_close (line 970) | def test_request_close(self): method test_http10 (line 983) | def test_http10(self): method test_http10_keepalive (line 994) | def test_http10_keepalive(self): method test_http10_keepalive_extra_crlf (line 1006) | def test_http10_keepalive_extra_crlf(self): method test_pipelined_requests (line 1018) | def test_pipelined_requests(self): method test_pipelined_cancel (line 1028) | def test_pipelined_cancel(self): method test_cancel_during_download (line 1038) | def test_cancel_during_download(self): method test_finish_while_closed (line 1046) | def test_finish_while_closed(self): method test_keepalive_chunked (line 1055) | def test_keepalive_chunked(self): method test_keepalive_chunked_head_no_body (line 1074) | def test_keepalive_chunked_head_no_body(self): class GzipBaseTest (line 1084) | class GzipBaseTest(AsyncHTTPTestCase): method get_app (line 1085) | def get_app(self): method post_gzip (line 1088) | def post_gzip(self, body): method test_uncompressed (line 1101) | def test_uncompressed(self): class GzipTest (line 1106) | class GzipTest(GzipBaseTest, AsyncHTTPTestCase): method get_httpserver_options (line 1107) | def get_httpserver_options(self): method test_gzip (line 1110) | def test_gzip(self): method test_gzip_case_insensitive (line 1114) | def test_gzip_case_insensitive(self): class GzipUnsupportedTest (line 1130) | class GzipUnsupportedTest(GzipBaseTest, AsyncHTTPTestCase): method test_gzip_unsupported (line 1131) | def test_gzip_unsupported(self): class StreamingChunkSizeTest (line 1140) | class StreamingChunkSizeTest(AsyncHTTPTestCase): method get_http_client (line 1145) | def get_http_client(self): method get_httpserver_options (line 1150) | def get_httpserver_options(self): class MessageDelegate (line 1153) | class MessageDelegate(HTTPMessageDelegate): method __init__ (line 1154) | def __init__(self, connection): method headers_received (line 1157) | def headers_received(self, start_line, headers): method data_received (line 1160) | def data_received(self, chunk): method finish (line 1163) | def finish(self): method get_app (line 1172) | def get_app(self): method fetch_chunk_sizes (line 1179) | def fetch_chunk_sizes(self, **kwargs): method compress (line 1191) | def compress(self, body): method test_regular_body (line 1201) | def test_regular_body(self): method test_compressed_body (line 1206) | def test_compressed_body(self): method test_chunked_body (line 1213) | def test_chunked_body(self): method test_chunked_compressed (line 1222) | def test_chunked_compressed(self): class InvalidOutputContentLengthTest (line 1235) | class InvalidOutputContentLengthTest(AsyncHTTPTestCase): class MessageDelegate (line 1236) | class MessageDelegate(HTTPMessageDelegate): method __init__ (line 1237) | def __init__(self, connection): method headers_received (line 1240) | def headers_received(self, start_line, headers): method get_app (line 1254) | def get_app(self): method test_invalid_output_content_length (line 1261) | def test_invalid_output_content_length(self): class MaxHeaderSizeTest (line 1275) | class MaxHeaderSizeTest(AsyncHTTPTestCase): method get_app (line 1276) | def get_app(self): method get_httpserver_options (line 1279) | def get_httpserver_options(self): method test_small_headers (line 1282) | def test_small_headers(self): method test_large_headers (line 1287) | def test_large_headers(self): class IdleTimeoutTest (line 1300) | class IdleTimeoutTest(AsyncHTTPTestCase): method get_app (line 1301) | def get_app(self): method get_httpserver_options (line 1304) | def get_httpserver_options(self): method setUp (line 1307) | def setUp(self): method tearDown (line 1311) | def tearDown(self): method connect (line 1317) | def connect(self): method test_unused_connection (line 1324) | def test_unused_connection(self): method test_idle_after_use (line 1331) | def test_idle_after_use(self): class BodyLimitsTest (line 1347) | class BodyLimitsTest(AsyncHTTPTestCase): method get_app (line 1348) | def get_app(self): method get_httpserver_options (line 1375) | def get_httpserver_options(self): method get_http_client (line 1378) | def get_http_client(self): method test_small_body (line 1383) | def test_small_body(self): method test_large_body_buffered (line 1389) | def test_large_body_buffered(self): method test_large_body_buffered_chunked (line 1395) | def test_large_body_buffered_chunked(self): method test_large_body_streaming (line 1405) | def test_large_body_streaming(self): method test_large_body_streaming_chunked (line 1411) | def test_large_body_streaming_chunked(self): method test_large_body_streaming_override (line 1420) | def test_large_body_streaming_override(self): method test_large_body_streaming_chunked_override (line 1426) | def test_large_body_streaming_chunked_override(self): method test_timeout (line 1435) | def test_timeout(self): method test_body_size_override_reset (line 1452) | def test_body_size_override_reset(self): class LegacyInterfaceTest (line 1479) | class LegacyInterfaceTest(AsyncHTTPTestCase): method get_app (line 1480) | def get_app(self): method test_legacy_interface (line 1503) | def test_legacy_interface(self): FILE: tornado/test/httputil_test.py function form_data_args (line 27) | def form_data_args() -> tuple[dict[str, list[bytes]], dict[str, list[HTT... class TestUrlConcat (line 36) | class TestUrlConcat(unittest.TestCase): method test_url_concat_no_query_params (line 37) | def test_url_concat_no_query_params(self): method test_url_concat_encode_args (line 41) | def test_url_concat_encode_args(self): method test_url_concat_trailing_q (line 45) | def test_url_concat_trailing_q(self): method test_url_concat_q_with_no_trailing_amp (line 49) | def test_url_concat_q_with_no_trailing_amp(self): method test_url_concat_trailing_amp (line 53) | def test_url_concat_trailing_amp(self): method test_url_concat_mult_params (line 57) | def test_url_concat_mult_params(self): method test_url_concat_no_params (line 61) | def test_url_concat_no_params(self): method test_url_concat_none_params (line 65) | def test_url_concat_none_params(self): method test_url_concat_with_frag (line 69) | def test_url_concat_with_frag(self): method test_url_concat_multi_same_params (line 73) | def test_url_concat_multi_same_params(self): method test_url_concat_multi_same_query_params (line 77) | def test_url_concat_multi_same_query_params(self): method test_url_concat_dict_params (line 81) | def test_url_concat_dict_params(self): class QsParseTest (line 86) | class QsParseTest(unittest.TestCase): method test_parsing (line 87) | def test_parsing(self): class MultipartFormDataTest (line 96) | class MultipartFormDataTest(unittest.TestCase): method test_file_upload (line 97) | def test_file_upload(self): method test_unquoted_names (line 110) | def test_unquoted_names(self): method test_special_filenames (line 124) | def test_special_filenames(self): method test_invalid_chars (line 151) | def test_invalid_chars(self): method test_non_ascii_filename_rfc5987 (line 170) | def test_non_ascii_filename_rfc5987(self): method test_non_ascii_filename_raw (line 183) | def test_non_ascii_filename_raw(self): method test_boundary_starts_and_ends_with_quotes (line 196) | def test_boundary_starts_and_ends_with_quotes(self): method test_missing_headers (line 209) | def test_missing_headers(self): method test_invalid_content_disposition (line 222) | def test_invalid_content_disposition(self): method test_line_does_not_end_with_correct_line_break (line 234) | def test_line_does_not_end_with_correct_line_break(self): method test_content_disposition_header_without_name_parameter (line 245) | def test_content_disposition_header_without_name_parameter(self): method test_data_after_final_boundary (line 259) | def test_data_after_final_boundary(self): method test_disposition_param_linear_performance (line 276) | def test_disposition_param_linear_performance(self): method test_multipart_config (line 300) | def test_multipart_config(self): class HTTPHeadersTest (line 333) | class HTTPHeadersTest(unittest.TestCase): method test_multi_line (line 334) | def test_multi_line(self): method test_continuation (line 361) | def test_continuation(self): method test_forbidden_ascii_characters (line 377) | def test_forbidden_ascii_characters(self): method test_unicode_newlines (line 388) | def test_unicode_newlines(self): method test_unicode_whitespace (line 431) | def test_unicode_whitespace(self): method test_optional_cr (line 450) | def test_optional_cr(self): method test_copy (line 463) | def test_copy(self): method test_pickle_roundtrip (line 480) | def test_pickle_roundtrip(self): method test_setdefault (line 490) | def test_setdefault(self): method test_string (line 501) | def test_string(self): method test_invalid_header_names (line 509) | def test_invalid_header_names(self): method test_linear_performance (line 525) | def test_linear_performance(self): class FormatTimestampTest (line 541) | class FormatTimestampTest(unittest.TestCase): method check (line 546) | def check(self, value): method test_unix_time_float (line 549) | def test_unix_time_float(self): method test_unix_time_int (line 552) | def test_unix_time_int(self): method test_struct_time (line 555) | def test_struct_time(self): method test_time_tuple (line 558) | def test_time_tuple(self): method test_utc_naive_datetime (line 563) | def test_utc_naive_datetime(self): method test_utc_naive_datetime_deprecated (line 570) | def test_utc_naive_datetime_deprecated(self): method test_utc_aware_datetime (line 574) | def test_utc_aware_datetime(self): method test_other_aware_datetime (line 579) | def test_other_aware_datetime(self): class HTTPServerRequestTest (line 590) | class HTTPServerRequestTest(unittest.TestCase): method test_default_constructor (line 591) | def test_default_constructor(self): method test_body_is_a_byte_string (line 597) | def test_body_is_a_byte_string(self): method test_repr_does_not_contain_headers (line 601) | def test_repr_does_not_contain_headers(self): class ParseRequestStartLineTest (line 608) | class ParseRequestStartLineTest(unittest.TestCase): method test_parse_request_start_line (line 613) | def test_parse_request_start_line(self): class ParseCookieTest (line 621) | class ParseCookieTest(unittest.TestCase): method test_python_cookies (line 624) | def test_python_cookies(self): method test_cookie_edgecases (line 649) | def test_cookie_edgecases(self): method test_invalid_cookies (line 658) | def test_invalid_cookies(self): method test_unquote (line 692) | def test_unquote(self): method test_unquote_large (line 718) | def test_unquote_large(self): FILE: tornado/test/import_test.py class ImportTest (line 44) | class ImportTest(unittest.TestCase): method test_import_everything (line 45) | def test_import_everything(self): method test_lazy_import (line 54) | def test_lazy_import(self): method test_import_aliases (line 60) | def test_import_aliases(self): FILE: tornado/test/ioloop_test.py class TestIOLoop (line 35) | class TestIOLoop(AsyncTestCase): method test_add_callback_return_sequence (line 36) | def test_add_callback_return_sequence(self): method test_add_callback_wakeup (line 55) | def test_add_callback_wakeup(self): method test_add_callback_wakeup_other_thread (line 73) | def test_add_callback_wakeup_other_thread(self): method test_add_timeout_timedelta (line 87) | def test_add_timeout_timedelta(self): method test_multiple_add (line 91) | def test_multiple_add(self): method test_remove_without_add (line 110) | def test_remove_without_add(self): method test_add_callback_from_signal (line 119) | def test_add_callback_from_signal(self): method test_add_callback_from_signal_other_thread (line 126) | def test_add_callback_from_signal_other_thread(self): method test_add_callback_while_closing (line 138) | def test_add_callback_while_closing(self): method test_read_while_writeable (line 158) | def test_read_while_writeable(self): method test_remove_timeout_after_fire (line 179) | def test_remove_timeout_after_fire(self): method test_remove_timeout_cleanup (line 185) | def test_remove_timeout_cleanup(self): method test_remove_timeout_from_timeout (line 198) | def test_remove_timeout_from_timeout(self): method test_timeout_with_arguments (line 221) | def test_timeout_with_arguments(self): method test_add_timeout_return (line 234) | def test_add_timeout_return(self): method test_call_at_return (line 241) | def test_call_at_return(self): method test_call_later_return (line 246) | def test_call_later_return(self): method test_close_file_object (line 251) | def test_close_file_object(self): method test_handler_callback_file_object (line 283) | def test_handler_callback_file_object(self): method test_mixed_fd_fileobj (line 308) | def test_mixed_fd_fileobj(self): method test_reentrant (line 322) | def test_reentrant(self): method test_exception_logging (line 340) | def test_exception_logging(self): method test_exception_logging_future (line 347) | def test_exception_logging_future(self): method test_exception_logging_native_coro (line 359) | def test_exception_logging_native_coro(self): method test_spawn_callback (line 372) | def test_spawn_callback(self): method test_remove_handler_from_handler (line 387) | def test_remove_handler_from_handler(self): method test_init_close_race (line 417) | def test_init_close_race(self): method test_explicit_asyncio_loop (line 430) | def test_explicit_asyncio_loop(self): class TestIOLoopCurrent (line 442) | class TestIOLoopCurrent(unittest.TestCase): method setUp (line 443) | def setUp(self): method tearDown (line 448) | def tearDown(self): method test_non_current (line 452) | def test_non_current(self): method test_force_current (line 471) | def test_force_current(self): class TestIOLoopCurrentAsync (line 476) | class TestIOLoopCurrentAsync(AsyncTestCase): method setUp (line 477) | def setUp(self): method test_clear_without_current (line 482) | def test_clear_without_current(self): class TestIOLoopFutures (line 490) | class TestIOLoopFutures(AsyncTestCase): method test_add_future_threads (line 491) | def test_add_future_threads(self): method test_run_in_executor_gen (line 505) | def test_run_in_executor_gen(self): method test_run_in_executor_native (line 527) | def test_run_in_executor_native(self): method test_set_default_executor (line 549) | def test_set_default_executor(self): class TestIOLoopRunSync (line 570) | class TestIOLoopRunSync(unittest.TestCase): method setUp (line 571) | def setUp(self): method tearDown (line 574) | def tearDown(self): method test_sync_result (line 577) | def test_sync_result(self): method test_sync_exception (line 581) | def test_sync_exception(self): method test_async_result (line 585) | def test_async_result(self): method test_async_exception (line 593) | def test_async_exception(self): method test_current (line 602) | def test_current(self): method test_timeout (line 608) | def test_timeout(self): method test_native_coroutine (line 615) | def test_native_coroutine(self): method test_stop_no_timeout (line 625) | def test_stop_no_timeout(self): class TestPeriodicCallbackMath (line 636) | class TestPeriodicCallbackMath(unittest.TestCase): method simulate_calls (line 637) | def simulate_calls(self, pc, durations): method dummy (line 654) | def dummy(self): method test_basic (line 657) | def test_basic(self): method test_overrun (line 663) | def test_overrun(self): method test_clock_backwards (line 684) | def test_clock_backwards(self): method test_jitter (line 701) | def test_jitter(self): method test_timedelta (line 713) | def test_timedelta(self): class TestPeriodicCallbackAsync (line 719) | class TestPeriodicCallbackAsync(AsyncTestCase): method test_periodic_plain (line 720) | def test_periodic_plain(self): method test_periodic_coro (line 735) | def test_periodic_coro(self) -> None: method test_periodic_async (line 753) | def test_periodic_async(self) -> None: class TestIOLoopConfiguration (line 771) | class TestIOLoopConfiguration(unittest.TestCase): method run_python (line 772) | def run_python(self, *statements): method test_default (line 780) | def test_default(self): method test_asyncio (line 787) | def test_asyncio(self): method test_asyncio_main (line 797) | def test_asyncio_main(self): FILE: tornado/test/iostream_test.py function _server_ssl_options (line 48) | def _server_ssl_options(): class HelloHandler (line 55) | class HelloHandler(RequestHandler): method get (line 56) | def get(self): class TestIOStreamWebMixin (line 61) | class TestIOStreamWebMixin(AsyncTestCase): method _make_client_iostream (line 71) | def _make_client_iostream(self): method mixin_get_app (line 74) | def mixin_get_app(self): method get_http_port (line 77) | def get_http_port(self) -> int: method fetch (line 80) | def fetch( method test_connection_closed (line 86) | def test_connection_closed(self): method test_read_until_close (line 106) | def test_read_until_close(self): method test_read_zero_bytes (line 116) | def test_read_zero_bytes(self): method test_write_while_connecting (line 136) | def test_write_while_connecting(self): method test_future_interface (line 158) | def test_future_interface(self): method test_future_close_while_reading (line 175) | def test_future_close_while_reading(self): method test_future_read_until_close (line 184) | def test_future_read_until_close(self): class TestReadWriteMixin (line 200) | class TestReadWriteMixin(AsyncTestCase): method make_iostream_pair (line 204) | def make_iostream_pair(self, **kwargs): method iostream_pair (line 207) | def iostream_pair(self, **kwargs): method test_write_zero_bytes (line 229) | def test_write_zero_bytes(self): method test_future_delayed_close_callback (line 238) | def test_future_delayed_close_callback(self): method test_close_buffered_data (line 254) | def test_close_buffered_data(self): method test_read_until_close_after_close (line 280) | def test_read_until_close_after_close(self): method test_large_read_until (line 299) | def test_large_read_until(self): method test_read_until_with_close_after_second_packet (line 324) | async def test_read_until_with_close_after_second_packet(self): method test_read_until_unsatisfied_after_close (line 348) | async def test_read_until_unsatisfied_after_close(self): method test_close_callback_with_pending_read (line 362) | def test_close_callback_with_pending_read(self): method test_future_close_callback (line 386) | def test_future_close_callback(self): method test_write_memoryview (line 411) | def test_write_memoryview(self): method test_read_bytes_partial (line 423) | def test_read_bytes_partial(self): method test_read_until_max_bytes (line 448) | def test_read_until_max_bytes(self): method test_read_until_max_bytes_inline (line 476) | def test_read_until_max_bytes_inline(self): method test_read_until_max_bytes_ignores_extra (line 495) | def test_read_until_max_bytes_ignores_extra(self): method test_read_until_regex_max_bytes (line 512) | def test_read_until_regex_max_bytes(self): method test_read_until_regex_max_bytes_inline (line 540) | def test_read_until_regex_max_bytes_inline(self): method test_read_until_regex_max_bytes_ignores_extra (line 558) | def test_read_until_regex_max_bytes_ignores_extra(self): method test_small_reads_from_large_buffer (line 575) | def test_small_reads_from_large_buffer(self): method test_small_read_untils_from_large_buffer (line 590) | def test_small_read_untils_from_large_buffer(self): method test_flow_control (line 605) | def test_flow_control(self): method test_read_into (line 623) | def test_read_into(self): method test_read_into_partial (line 665) | def test_read_into_partial(self): method test_read_into_zero_bytes (line 694) | def test_read_into_zero_bytes(self): method test_many_mixed_reads (line 705) | def test_many_mixed_reads(self): class TestIOStreamMixin (line 756) | class TestIOStreamMixin(TestReadWriteMixin): method _make_server_iostream (line 757) | def _make_server_iostream(self, connection, **kwargs): method _make_client_iostream (line 760) | def _make_client_iostream(self, connection, **kwargs): method make_iostream_pair (line 764) | def make_iostream_pair(self, **kwargs): method test_connection_refused (line 782) | def test_connection_refused(self): method test_gaierror (line 799) | def test_gaierror(self): method test_read_until_close_with_error (line 816) | def test_read_until_close_with_error(self): method test_inline_read_error (line 831) | def test_inline_read_error(self): method test_async_read_error_logging (line 864) | def test_async_read_error_logging(self): method test_future_write (line 889) | def test_future_write(self): class TestIOStreamWebHTTP (line 920) | class TestIOStreamWebHTTP(AsyncHTTPTestCase, TestIOStreamWebMixin): method _make_client_iostream (line 921) | def _make_client_iostream(self): method get_app (line 924) | def get_app(self): class TestIOStreamWebHTTPS (line 928) | class TestIOStreamWebHTTPS(AsyncHTTPSTestCase, TestIOStreamWebMixin): method _make_client_iostream (line 929) | def _make_client_iostream(self): method get_app (line 932) | def get_app(self): class TestIOStream (line 936) | class TestIOStream(TestIOStreamMixin): method _make_server_iostream (line 937) | def _make_server_iostream(self, connection, **kwargs): method _make_client_iostream (line 940) | def _make_client_iostream(self, connection, **kwargs): class TestIOStreamSSL (line 944) | class TestIOStreamSSL(TestIOStreamMixin): method _make_server_iostream (line 945) | def _make_server_iostream(self, connection, **kwargs): method _make_client_iostream (line 954) | def _make_client_iostream(self, connection, **kwargs): class TestIOStreamSSLContext (line 963) | class TestIOStreamSSLContext(TestIOStreamMixin): method _make_server_iostream (line 964) | def _make_server_iostream(self, connection, **kwargs): method _make_client_iostream (line 975) | def _make_client_iostream(self, connection, **kwargs): class TestIOStreamStartTLS (line 982) | class TestIOStreamStartTLS(AsyncTestCase): method setUp (line 983) | def setUp(self): method tearDown (line 1001) | def tearDown(self): method accept (line 1010) | def accept(self, connection, address): method client_send_line (line 1017) | def client_send_line(self, line): method server_send_line (line 1025) | def server_send_line(self, line): method client_start_tls (line 1032) | def client_start_tls(self, ssl_options=None, server_hostname=None): method server_start_tls (line 1038) | def server_start_tls(self, ssl_options=None): method test_start_tls_smtp (line 1045) | def test_start_tls_smtp(self): method test_handshake_fail (line 1066) | def test_handshake_fail(self): method test_check_hostname (line 1077) | def test_check_hostname(self): method test_typed_memoryview (line 1092) | def test_typed_memoryview(self): class WaitForHandshakeTest (line 1103) | class WaitForHandshakeTest(AsyncTestCase): method connect_to_server (line 1105) | def connect_to_server(self, server_cls): method test_wait_for_handshake_future (line 1134) | def test_wait_for_handshake_future(self): method test_wait_for_handshake_already_waiting_error (line 1152) | def test_wait_for_handshake_already_waiting_error(self): method test_wait_for_handshake_already_connected (line 1169) | def test_wait_for_handshake_already_connected(self): class TestIOStreamCheckHostname (line 1183) | class TestIOStreamCheckHostname(AsyncTestCase): method setUp (line 1188) | def setUp(self): method tearDown (line 1214) | def tearDown(self): method test_match (line 1220) | async def test_match(self): method test_no_match (line 1229) | async def test_no_match(self): method test_check_disabled (line 1254) | async def test_check_disabled(self): class TestPipeIOStream (line 1266) | class TestPipeIOStream(TestReadWriteMixin, AsyncTestCase): method make_iostream_pair (line 1268) | def make_iostream_pair(self, **kwargs): method test_pipe_iostream (line 1274) | def test_pipe_iostream(self): method test_pipe_iostream_big_write (line 1294) | def test_pipe_iostream_big_write(self): class TestStreamBuffer (line 1309) | class TestStreamBuffer(unittest.TestCase): method setUp (line 1314) | def setUp(self): method to_bytes (line 1317) | def to_bytes(self, b): method make_streambuffer (line 1325) | def make_streambuffer(self, large_buf_threshold=10): method check_peek (line 1331) | def check_peek(self, buf, expected): method check_append_all_then_skip_all (line 1340) | def check_append_all_then_skip_all(self, buf, objs, input_type): method test_small (line 1360) | def test_small(self): method test_large (line 1386) | def test_large(self): FILE: tornado/test/locale_test.py class TranslationLoaderTest (line 12) | class TranslationLoaderTest(unittest.TestCase): method clear_locale_cache (line 16) | def clear_locale_cache(self): method setUp (line 19) | def setUp(self): method tearDown (line 25) | def tearDown(self): method test_csv (line 30) | def test_csv(self): method test_csv_bom (line 38) | def test_csv_bom(self): method test_gettext (line 60) | def test_gettext(self): class LocaleDataTest (line 78) | class LocaleDataTest(unittest.TestCase): method test_non_ascii_name (line 79) | def test_non_ascii_name(self): class EnglishTest (line 86) | class EnglishTest(unittest.TestCase): method test_format_date (line 87) | def test_format_date(self): method test_friendly_number (line 144) | def test_friendly_number(self): method test_list (line 148) | def test_list(self): method test_format_day (line 155) | def test_format_day(self): FILE: tornado/test/locks_test.py class ConditionTest (line 22) | class ConditionTest(AsyncTestCase): method setUp (line 23) | def setUp(self): method record_done (line 27) | def record_done(self, future, key): method loop_briefly (line 39) | def loop_briefly(self): method test_repr (line 49) | def test_repr(self): method test_notify (line 57) | def test_notify(self): method test_notify_1 (line 62) | def test_notify_1(self): method test_notify_n (line 74) | def test_notify_n(self): method test_notify_all (line 91) | def test_notify_all(self): method test_wait_timeout (line 104) | def test_wait_timeout(self): method test_wait_timeout_preempted (line 112) | def test_wait_timeout_preempted(self): method test_notify_n_with_timeout (line 122) | def test_notify_n_with_timeout(self): method test_notify_all_with_timeout (line 146) | def test_notify_all_with_timeout(self): method test_nested_notify (line 161) | def test_nested_notify(self): method test_garbage_collection (line 177) | def test_garbage_collection(self): class EventTest (line 196) | class EventTest(AsyncTestCase): method test_repr (line 197) | def test_repr(self): method test_event (line 205) | def test_event(self): method test_event_timeout (line 218) | def test_event_timeout(self): method test_event_set_multiple (line 227) | def test_event_set_multiple(self): method test_event_wait_clear (line 233) | def test_event_wait_clear(self): class SemaphoreTest (line 243) | class SemaphoreTest(AsyncTestCase): method test_negative_value (line 244) | def test_negative_value(self): method test_repr (line 247) | def test_repr(self): method test_acquire (line 257) | def test_acquire(self): method test_acquire_timeout (line 278) | def test_acquire_timeout(self): method test_acquire_timeout_preempted (line 295) | def test_acquire_timeout_preempted(self): method test_release_unacquired (line 305) | def test_release_unacquired(self): method test_garbage_collection (line 318) | def test_garbage_collection(self): class SemaphoreContextManagerTest (line 343) | class SemaphoreContextManagerTest(AsyncTestCase): method test_context_manager (line 345) | def test_context_manager(self): method test_context_manager_async_await (line 354) | def test_context_manager_async_await(self): method test_context_manager_exception (line 368) | def test_context_manager_exception(self): method test_context_manager_timeout (line 378) | def test_context_manager_timeout(self): method test_context_manager_timeout_error (line 387) | def test_context_manager_timeout_error(self): method test_context_manager_contended (line 397) | def test_context_manager_contended(self): method test_yield_sem (line 417) | def test_yield_sem(self): method test_context_manager_misuse (line 424) | def test_context_manager_misuse(self): class BoundedSemaphoreTest (line 432) | class BoundedSemaphoreTest(AsyncTestCase): method test_release_unacquired (line 433) | def test_release_unacquired(self): class LockTests (line 448) | class LockTests(AsyncTestCase): method test_repr (line 449) | def test_repr(self): method test_acquire_release (line 456) | def test_acquire_release(self): method test_acquire_fifo (line 465) | def test_acquire_fifo(self): method test_acquire_fifo_async_with (line 483) | def test_acquire_fifo_async_with(self): method test_acquire_timeout (line 501) | def test_acquire_timeout(self): method test_multi_release (line 510) | def test_multi_release(self): method test_yield_lock (line 518) | def test_yield_lock(self): method test_context_manager_misuse (line 525) | def test_context_manager_misuse(self): FILE: tornado/test/log_test.py function ignore_bytes_warning (line 33) | def ignore_bytes_warning(): class LogFormatterTest (line 39) | class LogFormatterTest(unittest.TestCase): method setUp (line 46) | def setUp(self): method tearDown (line 63) | def tearDown(self): method make_handler (line 68) | def make_handler(self, filename): method get_output (line 71) | def get_output(self): method test_basic_logging (line 80) | def test_basic_logging(self): method test_bytes_logging (line 84) | def test_bytes_logging(self): method test_utf8_logging (line 90) | def test_utf8_logging(self): method test_bytes_exception_logging (line 103) | def test_bytes_exception_logging(self): method test_unicode_logging (line 115) | def test_unicode_logging(self): class EnablePrettyLoggingTest (line 120) | class EnablePrettyLoggingTest(unittest.TestCase): method setUp (line 121) | def setUp(self): method test_log_file (line 128) | def test_log_file(self): method test_log_file_with_timed_rotating (line 148) | def test_log_file_with_timed_rotating(self): method test_wrong_rotate_mode_value (line 168) | def test_wrong_rotate_mode_value(self): class LoggingOptionTest (line 184) | class LoggingOptionTest(unittest.TestCase): method logs_present (line 187) | def logs_present(self, statement, args=None): method test_default (line 205) | def test_default(self): method test_tornado_default (line 208) | def test_tornado_default(self): method test_disable_command_line (line 211) | def test_disable_command_line(self): method test_disable_command_line_case_insensitive (line 214) | def test_disable_command_line_case_insensitive(self): method test_disable_code_string (line 217) | def test_disable_code_string(self): method test_disable_code_none (line 222) | def test_disable_code_none(self): method test_disable_override (line 227) | def test_disable_override(self): FILE: tornado/test/netutil_test.py class _ResolverTestMixin (line 29) | class _ResolverTestMixin(AsyncTestCase): method test_localhost (line 33) | def test_localhost(self): class _ResolverErrorTestMixin (line 48) | class _ResolverErrorTestMixin(AsyncTestCase): method test_bad_host (line 52) | def test_bad_host(self): function _failing_getaddrinfo (line 57) | def _failing_getaddrinfo(*args): class BlockingResolverTest (line 63) | class BlockingResolverTest(_ResolverTestMixin): method setUp (line 64) | def setUp(self): class BlockingResolverErrorTest (line 72) | class BlockingResolverErrorTest(_ResolverErrorTestMixin): method setUp (line 73) | def setUp(self): method tearDown (line 79) | def tearDown(self): class OverrideResolverTest (line 84) | class OverrideResolverTest(_ResolverTestMixin): method setUp (line 85) | def setUp(self): method test_resolve_multiaddr (line 98) | def test_resolve_multiaddr(self): class ThreadedResolverTest (line 109) | class ThreadedResolverTest(_ResolverTestMixin): method setUp (line 110) | def setUp(self): method tearDown (line 114) | def tearDown(self): class ThreadedResolverErrorTest (line 123) | class ThreadedResolverErrorTest(_ResolverErrorTestMixin): method setUp (line 124) | def setUp(self): method tearDown (line 130) | def tearDown(self): class ThreadedResolverImportTest (line 137) | class ThreadedResolverImportTest(unittest.TestCase): method test_import (line 138) | def test_import(self): class CaresResolverTest (line 168) | class CaresResolverTest(_ResolverTestMixin): method setUp (line 169) | def setUp(self): class IsValidIPTest (line 174) | class IsValidIPTest(unittest.TestCase): method test_is_valid_ip (line 175) | def test_is_valid_ip(self): class TestPortAllocation (line 191) | class TestPortAllocation(unittest.TestCase): method test_same_port_allocation (line 192) | def test_same_port_allocation(self): method test_reuse_port (line 204) | def test_reuse_port(self): FILE: tornado/test/options_test.py class Email (line 12) | class Email: method __init__ (line 13) | def __init__(self, value): method value (line 20) | def value(self): class OptionsTest (line 24) | class OptionsTest(unittest.TestCase): method test_parse_command_line (line 25) | def test_parse_command_line(self): method test_parse_config_file (line 31) | def test_parse_config_file(self): method test_parse_callbacks (line 44) | def test_parse_callbacks(self): method test_help (line 67) | def test_help(self): method test_subcommand (line 79) | def test_subcommand(self): method test_setattr (line 102) | def test_setattr(self): method test_setattr_type_check (line 108) | def test_setattr_type_check(self): method test_setattr_with_callback (line 116) | def test_setattr_with_callback(self): method _sample_options (line 123) | def _sample_options(self): method test_iter (line 129) | def test_iter(self): method test_getitem (line 134) | def test_getitem(self): method test_setitem (line 138) | def test_setitem(self): method test_items (line 144) | def test_items(self): method test_as_dict (line 151) | def test_as_dict(self): method test_group_dict (line 156) | def test_group_dict(self): method test_mock_patch (line 170) | def test_mock_patch(self): method _define_options (line 191) | def _define_options(self): method _check_options_values (line 204) | def _check_options_values(self, options): method test_types (line 216) | def test_types(self): method test_types_with_conf_file (line 234) | def test_types_with_conf_file(self): method test_multiple_string (line 245) | def test_multiple_string(self): method test_multiple_int (line 251) | def test_multiple_int(self): method test_error_redefine (line 257) | def test_error_redefine(self): method test_error_redefine_underscore (line 264) | def test_error_redefine_underscore(self): method test_dash_underscore_cli (line 281) | def test_dash_underscore_cli(self): method test_dash_underscore_file (line 294) | def test_dash_underscore_file(self): method test_dash_underscore_introspection (line 305) | def test_dash_underscore_introspection(self): FILE: tornado/test/process_test.py class ProcessTest (line 22) | class ProcessTest(unittest.TestCase): method get_app (line 23) | def get_app(self): method tearDown (line 36) | def tearDown(self): method test_multi_process (line 51) | def test_multi_process(self): class SubprocessTest (line 136) | class SubprocessTest(AsyncTestCase): method term_and_wait (line 137) | def term_and_wait(self, subproc): method test_subprocess (line 142) | def test_subprocess(self): method test_close_stdin (line 163) | def test_close_stdin(self): method test_stderr (line 178) | def test_stderr(self): method test_sigchild (line 191) | def test_sigchild(self): method test_sigchild_future (line 201) | def test_sigchild_future(self): method test_sigchild_signal (line 209) | def test_sigchild_signal(self): method test_wait_for_exit_raise (line 250) | def test_wait_for_exit_raise(self): method test_wait_for_exit_raise_disabled (line 259) | def test_wait_for_exit_raise_disabled(self): FILE: tornado/test/queues_test.py class QueueBasicTest (line 23) | class QueueBasicTest(AsyncTestCase): method test_repr_and_str (line 24) | def test_repr_and_str(self): method test_order (line 47) | def test_order(self): method test_maxsize (line 56) | def test_maxsize(self): class QueueGetTest (line 76) | class QueueGetTest(AsyncTestCase): method test_blocking_get (line 78) | def test_blocking_get(self): method test_nonblocking_get (line 83) | def test_nonblocking_get(self): method test_nonblocking_get_exception (line 88) | def test_nonblocking_get_exception(self): method test_get_with_putters (line 93) | def test_get_with_putters(self): method test_blocking_get_wait (line 101) | def test_blocking_get_wait(self): method test_get_timeout (line 110) | def test_get_timeout(self): method test_get_timeout_preempted (line 121) | def test_get_timeout_preempted(self): method test_get_clears_timed_out_putters (line 129) | def test_get_clears_timed_out_putters(self): method test_get_clears_timed_out_getters (line 145) | def test_get_clears_timed_out_getters(self): method test_async_for (line 161) | def test_async_for(self): class QueuePutTest (line 177) | class QueuePutTest(AsyncTestCase): method test_blocking_put (line 179) | def test_blocking_put(self): method test_nonblocking_put_exception (line 184) | def test_nonblocking_put_exception(self): method test_put_with_getters (line 190) | def test_put_with_getters(self): method test_nonblocking_put_with_getters (line 200) | def test_nonblocking_put_with_getters(self): method test_blocking_put_wait (line 213) | def test_blocking_put_wait(self): method test_put_timeout (line 227) | def test_put_timeout(self): method test_put_timeout_preempted (line 243) | def test_put_timeout_preempted(self): method test_put_clears_timed_out_putters (line 252) | def test_put_clears_timed_out_putters(self): method test_put_clears_timed_out_getters (line 267) | def test_put_clears_timed_out_getters(self): method test_float_maxsize (line 285) | def test_float_maxsize(self): class QueueJoinTest (line 310) | class QueueJoinTest(AsyncTestCase): method test_task_done_underflow (line 313) | def test_task_done_underflow(self): method test_task_done (line 318) | def test_task_done(self): method test_task_done_delay (line 340) | def test_task_done_delay(self): method test_join_empty_queue (line 354) | def test_join_empty_queue(self): method test_join_timeout (line 360) | def test_join_timeout(self): class PriorityQueueJoinTest (line 367) | class PriorityQueueJoinTest(QueueJoinTest): method test_order (line 371) | def test_order(self): class LifoQueueJoinTest (line 385) | class LifoQueueJoinTest(QueueJoinTest): method test_order (line 389) | def test_order(self): class ProducerConsumerTest (line 403) | class ProducerConsumerTest(AsyncTestCase): method test_producer_consumer (line 405) | def test_producer_consumer(self): FILE: tornado/test/routing_test.py class BasicRouter (line 34) | class BasicRouter(Router): method find_handler (line 35) | def find_handler(self, request, **kwargs): class BasicRouterTestCase (line 51) | class BasicRouterTestCase(AsyncHTTPTestCase): method get_app (line 52) | def get_app(self): method test_basic_router (line 55) | def test_basic_router(self): class GetResource (line 63) | class GetResource(RequestHandler): method get (line 64) | def get(self, path): class PostResource (line 71) | class PostResource(RequestHandler): method post (line 72) | def post(self, path): class HTTPMethodRouter (line 76) | class HTTPMethodRouter(Router): method __init__ (line 77) | def __init__(self, app): method find_handler (line 80) | def find_handler(self, request, **kwargs): class HTTPMethodRouterTestCase (line 85) | class HTTPMethodRouterTestCase(AsyncHTTPTestCase): method get_app (line 86) | def get_app(self): method test_http_method_router (line 89) | def test_http_method_router(self): function _get_named_handler (line 101) | def _get_named_handler(handler_name): class CustomRouter (line 116) | class CustomRouter(ReversibleRouter): method __init__ (line 117) | def __init__(self): method add_routes (line 121) | def add_routes(self, routes): method find_handler (line 124) | def find_handler(self, request, **kwargs): method reverse_url (line 129) | def reverse_url(self, name, *args): class CustomRouterTestCase (line 134) | class CustomRouterTestCase(AsyncHTTPTestCase): method get_app (line 135) | def get_app(self): method test_custom_router (line 155) | def test_custom_router(self): class ConnectionDelegate (line 164) | class ConnectionDelegate(HTTPServerConnectionDelegate): method start_request (line 165) | def start_request(self, server_conn, request_conn): class RuleRouterTest (line 182) | class RuleRouterTest(AsyncHTTPTestCase): method get_app (line 183) | def get_app(self): method test_rule_based_router (line 222) | def test_rule_based_router(self): class WSGIContainerTestCase (line 245) | class WSGIContainerTestCase(AsyncHTTPTestCase): method get_app (line 246) | def get_app(self): method wsgi_app (line 263) | def wsgi_app(self, environ, start_response): method test_wsgi_container (line 267) | def test_wsgi_container(self): method test_delegate_not_found (line 274) | def test_delegate_not_found(self): FILE: tornado/test/runtests.py function all (line 58) | def all(): function test_runner_factory (line 62) | def test_runner_factory(stderr): class LogCounter (line 95) | class LogCounter(logging.Filter): method __init__ (line 98) | def __init__(self, *args, **kwargs): method filter (line 102) | def filter(self, record): class CountingStderr (line 112) | class CountingStderr(io.IOBase): method __init__ (line 113) | def __init__(self, real): method write (line 117) | def write(self, data): method flush (line 121) | def flush(self): function main (line 125) | def main(): FILE: tornado/test/simple_httpclient_test.py class SimpleHTTPClientCommonTestCase (line 50) | class SimpleHTTPClientCommonTestCase(httpclient_test.HTTPClientCommonTes... method get_http_client (line 51) | def get_http_client(self): class TriggerHandler (line 57) | class TriggerHandler(RequestHandler): method initialize (line 58) | def initialize(self, queue, wake_callback): method get (line 63) | def get(self): class ContentLengthHandler (line 72) | class ContentLengthHandler(RequestHandler): method get (line 73) | def get(self): method write_response (line 78) | def write_response(self): class HeadHandler (line 88) | class HeadHandler(RequestHandler): method head (line 89) | def head(self): class OptionsHandler (line 93) | class OptionsHandler(RequestHandler): method options (line 94) | def options(self): class NoContentHandler (line 99) | class NoContentHandler(RequestHandler): method get (line 100) | def get(self): class SeeOtherPostHandler (line 105) | class SeeOtherPostHandler(RequestHandler): method post (line 106) | def post(self): class SeeOtherGetHandler (line 113) | class SeeOtherGetHandler(RequestHandler): method get (line 114) | def get(self): class HostEchoHandler (line 120) | class HostEchoHandler(RequestHandler): method get (line 121) | def get(self): class NoContentLengthHandler (line 125) | class NoContentLengthHandler(RequestHandler): method get (line 126) | def get(self): class EchoPostHandler (line 138) | class EchoPostHandler(RequestHandler): method post (line 139) | def post(self): class RespondInPrepareHandler (line 144) | class RespondInPrepareHandler(RequestHandler): method prepare (line 145) | def prepare(self): class SimpleHTTPClientTestMixin (line 151) | class SimpleHTTPClientTestMixin(AsyncTestCase): method get_http_port (line 153) | def get_http_port(self) -> int: method fetch (line 156) | def fetch( method get_url (line 162) | def get_url(self, path: str) -> str: method get_protocol (line 165) | def get_protocol(self) -> str: method get_http_server (line 168) | def get_http_server(self) -> HTTPServer: method create_client (line 171) | def create_client(self, **kwargs): method mixin_get_app (line 174) | def mixin_get_app(self): method test_singleton (line 203) | def test_singleton(self): method test_connection_limit (line 221) | def test_connection_limit(self): method test_redirect_connection_limit (line 252) | def test_redirect_connection_limit(self): method test_max_redirects (line 258) | def test_max_redirects(self): method test_header_reuse (line 267) | def test_header_reuse(self): method test_default_user_agent (line 274) | def test_default_user_agent(self): method test_see_other_redirect (line 279) | def test_see_other_redirect(self): method test_connect_timeout (line 289) | def test_connect_timeout(self): method test_request_timeout (line 316) | def test_request_timeout(self): method test_ipv6 (line 328) | def test_ipv6(self): method test_multiple_content_length_accepted (line 341) | def test_multiple_content_length_accepted(self): method test_head_request (line 355) | def test_head_request(self): method test_options_request (line 361) | def test_options_request(self): method test_no_content (line 368) | def test_no_content(self): method test_host_header (line 377) | def test_host_header(self): method test_connection_refused (line 386) | def test_connection_refused(self): method test_queue_timeout (line 406) | def test_queue_timeout(self): method test_no_content_length (line 422) | def test_no_content_length(self): method sync_body_producer (line 429) | def sync_body_producer(self, write): method async_body_producer (line 434) | def async_body_producer(self, write): method test_sync_body_producer_chunked (line 439) | def test_sync_body_producer_chunked(self): method test_sync_body_producer_content_length (line 446) | def test_sync_body_producer_content_length(self): method test_async_body_producer_chunked (line 456) | def test_async_body_producer_chunked(self): method test_async_body_producer_content_length (line 463) | def test_async_body_producer_content_length(self): method test_native_body_producer_chunked (line 473) | def test_native_body_producer_chunked(self): method test_native_body_producer_content_length (line 485) | def test_native_body_producer_content_length(self): method test_100_continue (line 502) | def test_100_continue(self): method test_100_continue_early_response (line 508) | def test_100_continue_early_response(self): method test_streaming_follow_redirects (line 520) | def test_streaming_follow_redirects(self): method test_streaming_callback_coroutine (line 540) | def test_streaming_callback_coroutine(self: typing.Any): class SimpleHTTPClientTestCase (line 562) | class SimpleHTTPClientTestCase(AsyncHTTPTestCase, SimpleHTTPClientTestMi... method setUp (line 563) | def setUp(self): method get_app (line 567) | def get_app(self): method create_client (line 570) | def create_client(self, **kwargs): class SimpleHTTPSClientTestCase (line 574) | class SimpleHTTPSClientTestCase(AsyncHTTPSTestCase, SimpleHTTPClientTest... method setUp (line 575) | def setUp(self): method get_app (line 579) | def get_app(self): method create_client (line 582) | def create_client(self, **kwargs): method test_ssl_options (line 587) | def test_ssl_options(self): method test_ssl_context (line 591) | def test_ssl_context(self): method test_ssl_options_handshake_fail (line 598) | def test_ssl_options_handshake_fail(self): method test_ssl_context_handshake_fail (line 607) | def test_ssl_context_handshake_fail(self): method test_error_logging (line 614) | def test_error_logging(self): class CreateAsyncHTTPClientTestCase (line 624) | class CreateAsyncHTTPClientTestCase(AsyncTestCase): method setUp (line 625) | def setUp(self): method tearDown (line 629) | def tearDown(self): method test_max_clients (line 633) | def test_max_clients(self): class HTTP100ContinueTestCase (line 651) | class HTTP100ContinueTestCase(AsyncHTTPTestCase): method respond_100 (line 652) | def respond_100(self, request): method respond_200 (line 664) | def respond_200(self, fut): method get_app (line 671) | def get_app(self): method test_100_continue (line 675) | def test_100_continue(self): class HTTP204NoContentTestCase (line 682) | class HTTP204NoContentTestCase(AsyncHTTPTestCase): method respond_204 (line 683) | def respond_204(self, request): method get_app (line 708) | def get_app(self): method test_204_no_content (line 711) | def test_204_no_content(self): method test_204_invalid_content_length (line 718) | def test_204_invalid_content_length(self): class HostnameMappingTestCase (line 731) | class HostnameMappingTestCase(AsyncHTTPTestCase): method setUp (line 732) | def setUp(self): method get_app (line 741) | def get_app(self): method test_hostname_mapping (line 744) | def test_hostname_mapping(self): method test_port_mapping (line 749) | def test_port_mapping(self): class ResolveTimeoutTestCase (line 755) | class ResolveTimeoutTestCase(AsyncHTTPTestCase): method setUp (line 756) | def setUp(self): method get_app (line 771) | def get_app(self): method test_resolve_timeout (line 774) | def test_resolve_timeout(self): class MaxHeaderSizeTest (line 783) | class MaxHeaderSizeTest(AsyncHTTPTestCase): method get_app (line 784) | def get_app(self): method get_http_client (line 797) | def get_http_client(self): method test_small_headers (line 800) | def test_small_headers(self): method test_large_headers (line 805) | def test_large_headers(self): class MaxBodySizeTest (line 811) | class MaxBodySizeTest(AsyncHTTPTestCase): method get_app (line 812) | def get_app(self): method get_http_client (line 823) | def get_http_client(self): method test_small_body (line 826) | def test_small_body(self): method test_large_body (line 831) | def test_large_body(self): class MaxBufferSizeTest (line 841) | class MaxBufferSizeTest(AsyncHTTPTestCase): method get_app (line 842) | def get_app(self): method get_http_client (line 849) | def get_http_client(self): method test_large_body (line 855) | def test_large_body(self): class ChunkedWithContentLengthTest (line 861) | class ChunkedWithContentLengthTest(AsyncHTTPTestCase): method get_app (line 862) | def get_app(self): method get_http_client (line 871) | def get_http_client(self): method test_chunked_with_content_length (line 874) | def test_chunked_with_content_length(self): FILE: tornado/test/tcpclient_test.py class TestTCPServer (line 36) | class TestTCPServer(TCPServer): method __init__ (line 37) | def __init__(self, family): method handle_stream (line 45) | def handle_stream(self, stream, address): method stop (line 49) | def stop(self): class TCPClientTest (line 55) | class TCPClientTest(AsyncTestCase): method setUp (line 56) | def setUp(self): method start_server (line 61) | def start_server(self, family): method stop_server (line 65) | def stop_server(self): method tearDown (line 70) | def tearDown(self): method skipIfLocalhostV4 (line 75) | def skipIfLocalhostV4(self): method do_test_connect (line 84) | def do_test_connect(self, family, host, source_ip=None, source_port=No... method test_connect_ipv4_ipv4 (line 100) | def test_connect_ipv4_ipv4(self): method test_connect_ipv4_dual (line 103) | def test_connect_ipv4_dual(self): method test_connect_ipv6_ipv6 (line 107) | def test_connect_ipv6_ipv6(self): method test_connect_ipv6_dual (line 112) | def test_connect_ipv6_dual(self): method test_connect_unspec_ipv4 (line 116) | def test_connect_unspec_ipv4(self): method test_connect_unspec_ipv6 (line 120) | def test_connect_unspec_ipv6(self): method test_connect_unspec_dual (line 124) | def test_connect_unspec_dual(self): method test_refused_ipv4 (line 128) | def test_refused_ipv4(self): method test_source_ip_fail (line 134) | def test_source_ip_fail(self): method test_source_ip_success (line 144) | def test_source_ip_success(self): method test_source_port_fail (line 149) | def test_source_port_fail(self): method test_connect_timeout (line 164) | def test_connect_timeout(self): class TestConnectorSplit (line 177) | class TestConnectorSplit(unittest.TestCase): method test_one_family (line 178) | def test_one_family(self): method test_mixed (line 184) | def test_mixed(self): class ConnectorTest (line 192) | class ConnectorTest(AsyncTestCase): class FakeStream (line 193) | class FakeStream: method __init__ (line 194) | def __init__(self): method close (line 197) | def close(self): method setUp (line 200) | def setUp(self): method tearDown (line 208) | def tearDown(self): method create_stream (line 215) | def create_stream(self, af, addr): method assert_pending (line 222) | def assert_pending(self, *keys): method resolve_connect (line 225) | def resolve_connect(self, af, addr, success): method assert_connector_streams_closed (line 236) | def assert_connector_streams_closed(self, conn): method start_connect (line 240) | def start_connect(self, addrinfo): method test_immediate_success (line 246) | def test_immediate_success(self): method test_immediate_failure (line 252) | def test_immediate_failure(self): method test_one_family_second_try (line 259) | def test_one_family_second_try(self): method test_one_family_second_try_failure (line 267) | def test_one_family_second_try_failure(self): method test_one_family_second_try_timeout (line 275) | def test_one_family_second_try_timeout(self): method test_two_families_immediate_failure (line 287) | def test_two_families_immediate_failure(self): method test_two_families_timeout (line 296) | def test_two_families_timeout(self): method test_success_after_timeout (line 307) | def test_success_after_timeout(self): method test_all_fail (line 318) | def test_all_fail(self): method test_one_family_timeout_after_connect_timeout (line 334) | def test_one_family_timeout_after_connect_timeout(self): method test_one_family_success_before_connect_timeout (line 350) | def test_one_family_success_before_connect_timeout(self): method test_one_family_second_try_after_connect_timeout (line 363) | def test_one_family_second_try_after_connect_timeout(self): method test_one_family_second_try_failure_before_connect_timeout (line 376) | def test_one_family_second_try_failure_before_connect_timeout(self): method test_two_family_timeout_before_connect_timeout (line 388) | def test_two_family_timeout_before_connect_timeout(self): method test_two_family_success_after_timeout (line 403) | def test_two_family_success_after_timeout(self): method test_two_family_timeout_after_connect_timeout (line 417) | def test_two_family_timeout_after_connect_timeout(self): FILE: tornado/test/tcpserver_test.py class TCPServerTest (line 15) | class TCPServerTest(AsyncTestCase): method test_handle_stream_coroutine_logging (line 17) | def test_handle_stream_coroutine_logging(self): method test_handle_stream_native_coroutine (line 45) | def test_handle_stream_native_coroutine(self): method test_stop_twice (line 63) | def test_stop_twice(self): method test_stop_in_callback (line 71) | def test_stop_in_callback(self): class TestMultiprocess (line 118) | class TestMultiprocess(unittest.TestCase): method run_subproc (line 124) | def run_subproc(self, code: str) -> tuple[str, str]: method test_listen_single (line 139) | def test_listen_single(self): method test_bind_start (line 157) | def test_bind_start(self): method test_add_sockets (line 177) | def test_add_sockets(self): method test_listen_multi_reuse_port (line 197) | def test_listen_multi_reuse_port(self): FILE: tornado/test/template_test.py class TemplateTest (line 10) | class TemplateTest(unittest.TestCase): method test_simple (line 11) | def test_simple(self): method test_bytes (line 15) | def test_bytes(self): method test_expressions (line 19) | def test_expressions(self): method test_comment (line 23) | def test_comment(self): method test_include (line 27) | def test_include(self): method test_extends (line 38) | def test_extends(self): method test_relative_load (line 57) | def test_relative_load(self): method test_escaping (line 67) | def test_escaping(self): method test_unicode_template (line 78) | def test_unicode_template(self): method test_unicode_literal_expression (line 82) | def test_unicode_literal_expression(self): method test_custom_namespace (line 90) | def test_custom_namespace(self): method test_apply (line 96) | def test_apply(self): method test_unicode_apply (line 103) | def test_unicode_apply(self): method test_bytes_apply (line 110) | def test_bytes_apply(self): method test_if (line 117) | def test_if(self): method test_if_empty_body (line 122) | def test_if_empty_body(self): method test_try (line 126) | def test_try(self): method test_comment_directive (line 136) | def test_comment_directive(self): method test_break_continue (line 140) | def test_break_continue(self): method test_break_outside_loop (line 156) | def test_break_outside_loop(self): method test_break_in_apply (line 160) | def test_break_in_apply(self): method test_no_inherit_future (line 169) | def test_no_inherit_future(self): method test_non_ascii_name (line 180) | def test_non_ascii_name(self): class StackTraceTest (line 185) | class StackTraceTest(unittest.TestCase): method test_error_line_number_expression (line 186) | def test_error_line_number_expression(self): method test_error_line_number_directive (line 197) | def test_error_line_number_directive(self): method test_error_line_number_module (line 208) | def test_error_line_number_module(self): method test_error_line_number_include (line 227) | def test_error_line_number_include(self): method test_error_line_number_extends_base_error (line 237) | def test_error_line_number_extends_base_error(self): method test_error_line_number_extends_sub_error (line 248) | def test_error_line_number_extends_sub_error(self): method test_multi_includes (line 266) | def test_multi_includes(self): class ParseErrorDetailTest (line 281) | class ParseErrorDetailTest(unittest.TestCase): method test_details (line 282) | def test_details(self): method test_custom_parse_error (line 290) | def test_custom_parse_error(self): class AutoEscapeTest (line 296) | class AutoEscapeTest(unittest.TestCase): method setUp (line 297) | def setUp(self): method test_default_off (line 335) | def test_default_off(self): method test_default_on (line 355) | def test_default_on(self): method test_unextended_block (line 375) | def test_unextended_block(self): method test_extended_block (line 386) | def test_extended_block(self): method test_raw_expression (line 404) | def test_raw_expression(self): method test_custom_escape (line 414) | def test_custom_escape(self): method test_manual_minimize_whitespace (line 430) | def test_manual_minimize_whitespace(self): method test_whitespace_by_filename (line 444) | def test_whitespace_by_filename(self): method test_whitespace_by_loader (line 467) | def test_whitespace_by_loader(self): method test_whitespace_directive (line 481) | def test_whitespace_directive(self): class TemplateLoaderTest (line 495) | class TemplateLoaderTest(unittest.TestCase): method setUp (line 496) | def setUp(self): method test_utf8_in_file (line 499) | def test_utf8_in_file(self): FILE: tornado/test/testing_test.py function set_environ (line 19) | def set_environ(name, value): class AsyncTestCaseTest (line 32) | class AsyncTestCaseTest(AsyncTestCase): method test_wait_timeout (line 33) | def test_wait_timeout(self): method test_subsequent_wait_calls (line 51) | def test_subsequent_wait_calls(self): class LeakTest (line 65) | class LeakTest(AsyncTestCase): method tearDown (line 66) | def tearDown(self): method test_leaked_coroutine (line 71) | def test_leaked_coroutine(self): class AsyncHTTPTestCaseTest (line 89) | class AsyncHTTPTestCaseTest(AsyncHTTPTestCase): method setUp (line 90) | def setUp(self): method get_app (line 100) | def get_app(self): method test_fetch_segment (line 103) | def test_fetch_segment(self): method test_fetch_full_http_url (line 108) | def test_fetch_full_http_url(self): method tearDown (line 116) | def tearDown(self): class AsyncTestCaseReturnAssertionsTest (line 121) | class AsyncTestCaseReturnAssertionsTest(unittest.TestCase): method test_undecorated_generator (line 126) | def test_undecorated_generator(self): method test_undecorated_coroutine (line 147) | def test_undecorated_coroutine(self): method test_undecorated_generator_with_skip (line 163) | def test_undecorated_generator_with_skip(self): method test_other_return (line 175) | def test_other_return(self): class SetUpTearDownTest (line 187) | class SetUpTearDownTest(unittest.TestCase): method test_set_up_tear_down (line 188) | def test_set_up_tear_down(self): class AsyncHTTPTestCaseSetUpTearDownTest (line 216) | class AsyncHTTPTestCaseSetUpTearDownTest(unittest.TestCase): method test_tear_down_releases_app_and_http_server (line 217) | def test_tear_down_releases_app_and_http_server(self): class GenTest (line 234) | class GenTest(AsyncTestCase): method setUp (line 235) | def setUp(self): method tearDown (line 239) | def tearDown(self): method test_sync (line 244) | def test_sync(self): method test_async (line 248) | def test_async(self): method test_timeout (line 252) | def test_timeout(self): method test_no_timeout (line 270) | def test_no_timeout(self): method test_timeout_environment_variable (line 279) | def test_timeout_environment_variable(self): method test_no_timeout_environment_variable (line 290) | def test_no_timeout_environment_variable(self): method test_with_method_args (line 302) | def test_with_method_args(self): method test_with_method_kwargs (line 311) | def test_with_method_kwargs(self): method test_native_coroutine (line 320) | def test_native_coroutine(self): method test_native_coroutine_timeout (line 327) | def test_native_coroutine_timeout(self): FILE: tornado/test/twisted_test.py class ConvertDeferredTest (line 43) | class ConvertDeferredTest(AsyncTestCase): method test_success (line 45) | def test_success(self): method test_failure (line 58) | def test_failure(self): FILE: tornado/test/util.py function _detect_ipv6 (line 39) | def _detect_ipv6(): function refusing_port (line 59) | def refusing_port(): function exec_test (line 79) | def exec_test(caller_globals, caller_locals, s): function ignore_deprecation (line 95) | def ignore_deprecation(): function abstract_base_test (line 105) | def abstract_base_test(cls: _TestCaseType) -> _TestCaseType: FILE: tornado/test/util_test.py class RaiseExcInfoTest (line 21) | class RaiseExcInfoTest(unittest.TestCase): method test_two_arg_exception (line 22) | def test_two_arg_exception(self): class TestConfigurable (line 42) | class TestConfigurable(Configurable): method configurable_base (line 44) | def configurable_base(cls): method configurable_default (line 48) | def configurable_default(cls): class TestConfig1 (line 52) | class TestConfig1(TestConfigurable): method initialize (line 53) | def initialize(self, pos_arg=None, a=None): class TestConfig2 (line 58) | class TestConfig2(TestConfigurable): method initialize (line 59) | def initialize(self, pos_arg=None, b=None): class TestConfig3 (line 64) | class TestConfig3(TestConfigurable): method configurable_base (line 67) | def configurable_base(cls): method configurable_default (line 71) | def configurable_default(cls): class TestConfig3A (line 75) | class TestConfig3A(TestConfig3): method initialize (line 76) | def initialize(self, a=None): class TestConfig3B (line 80) | class TestConfig3B(TestConfig3): method initialize (line 81) | def initialize(self, b=None): class ConfigurableTest (line 85) | class ConfigurableTest(unittest.TestCase): method setUp (line 86) | def setUp(self): method tearDown (line 90) | def tearDown(self): method checkSubclasses (line 94) | def checkSubclasses(self): method test_default (line 105) | def test_default(self): method test_config_class (line 119) | def test_config_class(self): method test_config_str (line 131) | def test_config_str(self): method test_config_args (line 143) | def test_config_args(self): method test_config_class_args (line 159) | def test_config_class_args(self): method test_config_multi_level (line 175) | def test_config_multi_level(self): method test_config_inner_level (line 187) | def test_config_inner_level(self): class UnicodeLiteralTest (line 209) | class UnicodeLiteralTest(unittest.TestCase): method test_unicode_escapes (line 210) | def test_unicode_escapes(self): class ExecInTest (line 214) | class ExecInTest(unittest.TestCase): method test_no_inherit_future (line 215) | def test_no_inherit_future(self): class ArgReplacerTest (line 242) | class ArgReplacerTest(unittest.TestCase): method setUp (line 243) | def setUp(self): method test_omitted (line 249) | def test_omitted(self): method test_position (line 258) | def test_position(self): method test_keyword (line 267) | def test_keyword(self): class TimedeltaToSecondsTest (line 277) | class TimedeltaToSecondsTest(unittest.TestCase): method test_timedelta_to_seconds (line 278) | def test_timedelta_to_seconds(self): class ImportObjectTest (line 283) | class ImportObjectTest(unittest.TestCase): method test_import_member (line 284) | def test_import_member(self): method test_import_member_unicode (line 287) | def test_import_member_unicode(self): method test_import_module (line 290) | def test_import_module(self): method test_import_module_unicode (line 293) | def test_import_module_unicode(self): class ReUnescapeTest (line 300) | class ReUnescapeTest(unittest.TestCase): method test_re_unescape (line 301) | def test_re_unescape(self): method test_re_unescape_raises_error_on_invalid_input (line 306) | def test_re_unescape_raises_error_on_invalid_input(self): class VersionInfoTest (line 315) | class VersionInfoTest(unittest.TestCase): method assert_version_info_compatible (line 316) | def assert_version_info_compatible(self, version, version_info): method test_version_info_compatible (line 349) | def test_version_info_compatible(self): method test_current_version (line 367) | def test_current_version(self): FILE: tornado/test/web_test.py function relpath (line 63) | def relpath(*a): class WebTestCase (line 67) | class WebTestCase(AsyncHTTPTestCase): method get_app (line 74) | def get_app(self): method get_handlers (line 78) | def get_handlers(self): method get_app_kwargs (line 81) | def get_app_kwargs(self): class SimpleHandlerTestCase (line 85) | class SimpleHandlerTestCase(WebTestCase): method get_handlers (line 93) | def get_handlers(self): class HelloHandler (line 97) | class HelloHandler(RequestHandler): method get (line 98) | def get(self): class CookieTestRequestHandler (line 102) | class CookieTestRequestHandler(RequestHandler): method __init__ (line 104) | def __init__(self, cookie_secret="0123456789", key_version=None): method get_cookie (line 116) | def get_cookie(self, name) -> str | None: # type: ignore[override] method set_cookie (line 119) | def set_cookie(self, name, value, expires_days=None): # type: ignore[... class SecureCookieV1Test (line 124) | class SecureCookieV1Test(unittest.TestCase): method test_round_trip (line 125) | def test_round_trip(self): method test_cookie_tampering_future_timestamp (line 130) | def test_cookie_tampering_future_timestamp(self): method test_arbitrary_bytes (line 169) | def test_arbitrary_bytes(self): class SecureCookieV2Test (line 178) | class SecureCookieV2Test(unittest.TestCase): method test_round_trip (line 181) | def test_round_trip(self): method test_key_version_roundtrip (line 186) | def test_key_version_roundtrip(self): method test_key_version_roundtrip_differing_version (line 193) | def test_key_version_roundtrip_differing_version(self): method test_key_version_increment_version (line 200) | def test_key_version_increment_version(self): method test_key_version_invalidate_version (line 211) | def test_key_version_invalidate_version(self): class FinalReturnTest (line 225) | class FinalReturnTest(WebTestCase): method get_handlers (line 228) | def get_handlers(self): method get_app_kwargs (line 254) | def get_app_kwargs(self): method test_finish_method_return_future (line 257) | def test_finish_method_return_future(self): method test_render_method_return_future (line 268) | def test_render_method_return_future(self): class CookieTest (line 274) | class CookieTest(WebTestCase): method get_handlers (line 275) | def get_handlers(self): method test_set_cookie (line 400) | def test_set_cookie(self): method test_get_cookie (line 407) | def test_get_cookie(self): method test_set_cookie_domain (line 417) | def test_set_cookie_domain(self): method test_cookie_special_char (line 424) | def test_cookie_special_char(self): method test_set_cookie_forbidden_char (line 450) | def test_set_cookie_forbidden_char(self): method test_set_cookie_overwrite (line 456) | def test_set_cookie_overwrite(self): method test_set_cookie_max_age (line 463) | def test_set_cookie_max_age(self): method test_set_cookie_expires_days (line 468) | def test_set_cookie_expires_days(self): method test_set_cookie_false_flags (line 483) | def test_set_cookie_false_flags(self): method test_set_cookie_deprecated (line 491) | def test_set_cookie_deprecated(self): class AuthRedirectRequestHandler (line 497) | class AuthRedirectRequestHandler(RequestHandler): method initialize (line 498) | def initialize(self, login_url): method get_login_url (line 501) | def get_login_url(self): method get (line 505) | def get(self): class AuthRedirectTest (line 510) | class AuthRedirectTest(WebTestCase): method get_handlers (line 511) | def get_handlers(self): method test_relative_auth_redirect (line 521) | def test_relative_auth_redirect(self): method test_absolute_auth_redirect (line 526) | def test_absolute_auth_redirect(self): class ConnectionCloseHandler (line 538) | class ConnectionCloseHandler(RequestHandler): method initialize (line 539) | def initialize(self, test): method get (line 543) | def get(self): method on_connection_close (line 547) | def on_connection_close(self): class ConnectionCloseTest (line 551) | class ConnectionCloseTest(WebTestCase): method get_handlers (line 552) | def get_handlers(self): method test_connection_close (line 556) | def test_connection_close(self): method on_handler_waiting (line 566) | def on_handler_waiting(self): method on_connection_close (line 570) | def on_connection_close(self): class EchoHandler (line 575) | class EchoHandler(RequestHandler): method get (line 576) | def get(self, *path_args): class RequestEncodingTest (line 602) | class RequestEncodingTest(WebTestCase): method get_handlers (line 603) | def get_handlers(self): method fetch_json (line 606) | def fetch_json(self, path): method test_group_question_mark (line 609) | def test_group_question_mark(self): method test_group_encoding (line 620) | def test_group_encoding(self): method test_slashes (line 631) | def test_slashes(self): method test_error (line 643) | def test_error(self): class TypeCheckHandler (line 650) | class TypeCheckHandler(RequestHandler): method prepare (line 651) | def prepare(self): method get (line 678) | def get(self, path_component): method post (line 684) | def post(self, path_component): method check_type (line 688) | def check_type(self, name, obj, expected_type): class DecodeArgHandler (line 694) | class DecodeArgHandler(RequestHandler): method decode_argument (line 695) | def decode_argument(self, value, name=None): method get (line 704) | def get(self, arg): class LinkifyHandler (line 715) | class LinkifyHandler(RequestHandler): method get (line 716) | def get(self): class UIModuleResourceHandler (line 720) | class UIModuleResourceHandler(RequestHandler): method get (line 721) | def get(self): class OptionalPathHandler (line 725) | class OptionalPathHandler(RequestHandler): method get (line 726) | def get(self, path): class MultiHeaderHandler (line 730) | class MultiHeaderHandler(RequestHandler): method get (line 731) | def get(self): class RedirectHandler (line 738) | class RedirectHandler(RequestHandler): method get (line 739) | def get(self): class EmptyFlushCallbackHandler (line 748) | class EmptyFlushCallbackHandler(RequestHandler): method get (line 750) | def get(self): class HeaderInjectionHandler (line 762) | class HeaderInjectionHandler(RequestHandler): method get (line 763) | def get(self): class SetHeaderHandler (line 774) | class SetHeaderHandler(RequestHandler): method get (line 775) | def get(self): class GetArgumentHandler (line 794) | class GetArgumentHandler(RequestHandler): method prepare (line 795) | def prepare(self): class GetArgumentsHandler (line 805) | class GetArgumentsHandler(RequestHandler): method prepare (line 806) | def prepare(self): class WSGISafeWebTest (line 817) | class WSGISafeWebTest(WebTestCase): method get_app_kwargs (line 820) | def get_app_kwargs(self): method tearDown (line 846) | def tearDown(self): method get_handlers (line 850) | def get_handlers(self): method fetch_json (line 882) | def fetch_json(self, *args, **kwargs): method test_types (line 887) | def test_types(self): method test_decode_argument (line 904) | def test_decode_argument(self): method test_decode_argument_invalid_unicode (line 925) | def test_decode_argument_invalid_unicode(self): method test_decode_argument_plus (line 933) | def test_decode_argument_plus(self): method test_reverse_url (line 948) | def test_reverse_url(self): method test_uimodule_unescaped (line 959) | def test_uimodule_unescaped(self): method test_uimodule_resources (line 965) | def test_uimodule_resources(self): method test_optional_path (line 993) | def test_optional_path(self): method test_multi_header (line 997) | def test_multi_header(self): method test_redirect (line 1002) | def test_redirect(self): method test_web_redirect (line 1010) | def test_web_redirect(self): method test_web_redirect_double_slash (line 1018) | def test_web_redirect_double_slash(self): method test_header_injection (line 1023) | def test_header_injection(self): method test_set_header (line 1027) | def test_set_header(self): method test_get_argument (line 1031) | def test_get_argument(self): method test_get_query_arguments (line 1051) | def test_get_query_arguments(self): method test_get_body_arguments (line 1066) | def test_get_body_arguments(self): method test_no_gzip (line 1085) | def test_no_gzip(self): class NonWSGIWebTests (line 1091) | class NonWSGIWebTests(WebTestCase): method get_handlers (line 1092) | def get_handlers(self): method test_empty_flush (line 1095) | def test_empty_flush(self): class ErrorResponseTest (line 1100) | class ErrorResponseTest(WebTestCase): method get_handlers (line 1101) | def get_handlers(self): method test_default (line 1135) | def test_default(self): method test_write_error (line 1149) | def test_write_error(self): method test_failed_write_error (line 1159) | def test_failed_write_error(self): class StaticFileTest (line 1166) | class StaticFileTest(WebTestCase): method get_handlers (line 1175) | def get_handlers(self): method get_app_kwargs (line 1212) | def get_app_kwargs(self): method test_static_files (line 1215) | def test_static_files(self): method test_static_files_cacheable (line 1223) | def test_static_files_cacheable(self): method test_static_compressed_files (line 1232) | def test_static_compressed_files(self): method test_static_windows_special_filenames (line 1245) | def test_static_windows_special_filenames(self): method test_static_url (line 1268) | def test_static_url(self): method test_absolute_static_url (line 1272) | def test_absolute_static_url(self): method test_relative_version_exclusion (line 1279) | def test_relative_version_exclusion(self): method test_absolute_version_exclusion (line 1283) | def test_absolute_version_exclusion(self): method test_include_host_override (line 1287) | def test_include_host_override(self): method _trigger_include_host_check (line 1291) | def _trigger_include_host_check(self, include_host): method get_and_head (line 1296) | def get_and_head(self, *args, **kwargs): method test_static_304_if_modified_since (line 1317) | def test_static_304_if_modified_since(self): method test_static_304_if_none_match (line 1326) | def test_static_304_if_none_match(self): method test_static_304_etag_modified_bug (line 1333) | def test_static_304_etag_modified_bug(self): method test_static_304_if_modified_since_invalid (line 1344) | def test_static_304_if_modified_since_invalid(self): method test_static_if_modified_since_pre_epoch (line 1351) | def test_static_if_modified_since_pre_epoch(self): method test_static_if_modified_since_time_zone (line 1361) | def test_static_if_modified_since_time_zone(self): method test_static_etag (line 1379) | def test_static_etag(self): method test_static_with_range (line 1385) | def test_static_with_range(self): method test_static_with_range_full_file (line 1397) | def test_static_with_range_full_file(self): method test_static_with_range_full_past_end (line 1410) | def test_static_with_range_full_past_end(self): method test_static_with_range_partial_past_end (line 1421) | def test_static_with_range_partial_past_end(self): method test_static_with_range_end_edge (line 1432) | def test_static_with_range_end_edge(self): method test_static_with_range_neg_end (line 1440) | def test_static_with_range_neg_end(self): method test_static_with_range_neg_past_start (line 1448) | def test_static_with_range_neg_past_start(self): method test_static_invalid_range (line 1459) | def test_static_invalid_range(self): method test_static_unsatisfiable_range_zero_suffix (line 1463) | def test_static_unsatisfiable_range_zero_suffix(self): method test_static_unsatisfiable_range_invalid_start (line 1470) | def test_static_unsatisfiable_range_invalid_start(self): method test_static_unsatisfiable_range_end_less_than_start (line 1477) | def test_static_unsatisfiable_range_end_less_than_start(self): method test_static_head (line 1484) | def test_static_head(self): method test_static_head_range (line 1494) | def test_static_head_range(self): method test_static_range_if_none_match (line 1505) | def test_static_range_if_none_match(self): method test_static_404 (line 1520) | def test_static_404(self): method test_path_traversal_protection (line 1524) | def test_path_traversal_protection(self): method test_root_static_path (line 1538) | def test_root_static_path(self): class StaticDefaultFilenameTest (line 1550) | class StaticDefaultFilenameTest(WebTestCase): method get_app_kwargs (line 1551) | def get_app_kwargs(self): method get_handlers (line 1557) | def get_handlers(self): method test_static_default_filename (line 1560) | def test_static_default_filename(self): method test_static_default_redirect (line 1565) | def test_static_default_redirect(self): class StaticDefaultFilenameRootTest (line 1571) | class StaticDefaultFilenameRootTest(WebTestCase): method get_app_kwargs (line 1572) | def get_app_kwargs(self): method get_handlers (line 1579) | def get_handlers(self): method get_http_client (line 1582) | def get_http_client(self): method test_no_open_redirect (line 1587) | def test_no_open_redirect(self): class StaticFileWithPathTest (line 1608) | class StaticFileWithPathTest(WebTestCase): method get_app_kwargs (line 1609) | def get_app_kwargs(self): method get_handlers (line 1615) | def get_handlers(self): method test_serve (line 1618) | def test_serve(self): class CustomStaticFileTest (line 1623) | class CustomStaticFileTest(WebTestCase): method get_handlers (line 1624) | def get_handlers(self): method get_app_kwargs (line 1677) | def get_app_kwargs(self): method test_serve (line 1680) | def test_serve(self): method test_static_url (line 1684) | def test_static_url(self): class HostMatchingTest (line 1690) | class HostMatchingTest(WebTestCase): class Handler (line 1691) | class Handler(RequestHandler): method initialize (line 1692) | def initialize(self, reply): method get (line 1695) | def get(self): method get_handlers (line 1698) | def get_handlers(self): method test_host_matching (line 1701) | def test_host_matching(self): class DefaultHostMatchingTest (line 1732) | class DefaultHostMatchingTest(WebTestCase): method get_handlers (line 1733) | def get_handlers(self): method get_app_kwargs (line 1736) | def get_app_kwargs(self): method test_default_host_matching (line 1739) | def test_default_host_matching(self): class NamedURLSpecGroupsTest (line 1766) | class NamedURLSpecGroupsTest(WebTestCase): method get_handlers (line 1767) | def get_handlers(self): method test_named_urlspec_groups (line 1777) | def test_named_urlspec_groups(self): class ClearHeaderTest (line 1785) | class ClearHeaderTest(SimpleHandlerTestCase): class Handler (line 1786) | class Handler(RequestHandler): method get (line 1787) | def get(self): method test_clear_header (line 1793) | def test_clear_header(self): class Header204Test (line 1799) | class Header204Test(SimpleHandlerTestCase): class Handler (line 1800) | class Handler(RequestHandler): method get (line 1801) | def get(self): method test_204_headers (line 1805) | def test_204_headers(self): class Header304Test (line 1812) | class Header304Test(SimpleHandlerTestCase): class Handler (line 1813) | class Handler(RequestHandler): method get (line 1814) | def get(self): method test_304_headers (line 1818) | def test_304_headers(self): class StatusReasonTest (line 1833) | class StatusReasonTest(SimpleHandlerTestCase): class Handler (line 1834) | class Handler(RequestHandler): method get (line 1835) | def get(self): method get_http_client (line 1842) | def get_http_client(self): method test_status (line 1846) | def test_status(self): method test_header_injection (line 1860) | def test_header_injection(self): method test_reason_xss (line 1866) | def test_reason_xss(self): class DateHeaderTest (line 1874) | class DateHeaderTest(SimpleHandlerTestCase): class Handler (line 1875) | class Handler(RequestHandler): method get (line 1876) | def get(self): method test_date_header (line 1879) | def test_date_header(self): class RaiseWithReasonTest (line 1888) | class RaiseWithReasonTest(SimpleHandlerTestCase): class Handler (line 1889) | class Handler(RequestHandler): method get (line 1890) | def get(self): method get_http_client (line 1893) | def get_http_client(self): method test_raise_with_reason (line 1897) | def test_raise_with_reason(self): method test_httperror_str (line 1903) | def test_httperror_str(self): method test_httperror_str_from_httputil (line 1906) | def test_httperror_str_from_httputil(self): class ErrorHandlerXSRFTest (line 1910) | class ErrorHandlerXSRFTest(WebTestCase): method get_handlers (line 1911) | def get_handlers(self): method get_app_kwargs (line 1917) | def get_app_kwargs(self): method test_error_xsrf (line 1920) | def test_error_xsrf(self): method test_404_xsrf (line 1924) | def test_404_xsrf(self): class GzipTestCase (line 1929) | class GzipTestCase(SimpleHandlerTestCase): class Handler (line 1930) | class Handler(RequestHandler): method get (line 1931) | def get(self): method get_app_kwargs (line 1937) | def get_app_kwargs(self): method assert_compressed (line 1942) | def assert_compressed(self, response): method test_gzip (line 1952) | def test_gzip(self): method test_gzip_static (line 1957) | def test_gzip_static(self): method test_gzip_not_requested (line 1964) | def test_gzip_not_requested(self): method test_vary_already_present (line 1969) | def test_vary_already_present(self): method test_vary_already_present_multiple (line 1977) | def test_vary_already_present_multiple(self): class PathArgsInPrepareTest (line 1987) | class PathArgsInPrepareTest(WebTestCase): class Handler (line 1988) | class Handler(RequestHandler): method prepare (line 1989) | def prepare(self): method get (line 1992) | def get(self, path): method get_handlers (line 1996) | def get_handlers(self): method test_pos (line 1999) | def test_pos(self): method test_kw (line 2005) | def test_kw(self): class ClearAllCookiesTest (line 2012) | class ClearAllCookiesTest(SimpleHandlerTestCase): class Handler (line 2013) | class Handler(RequestHandler): method get (line 2014) | def get(self): method test_clear_all_cookies (line 2018) | def test_clear_all_cookies(self): class PermissionError (line 2026) | class PermissionError(Exception): class ExceptionHandlerTest (line 2030) | class ExceptionHandlerTest(SimpleHandlerTestCase): class Handler (line 2031) | class Handler(RequestHandler): method get (line 2032) | def get(self): method write_error (line 2041) | def write_error(self, status_code, **kwargs): method log_exception (line 2050) | def log_exception(self, typ, value, tb): method test_http_error (line 2056) | def test_http_error(self): method test_unknown_error (line 2063) | def test_unknown_error(self): method test_known_error (line 2069) | def test_known_error(self): class BuggyLoggingTest (line 2077) | class BuggyLoggingTest(SimpleHandlerTestCase): class Handler (line 2078) | class Handler(RequestHandler): method get (line 2079) | def get(self): method log_exception (line 2082) | def log_exception(self, typ, value, tb): method test_buggy_log_exception (line 2085) | def test_buggy_log_exception(self): class UIMethodUIModuleTest (line 2092) | class UIMethodUIModuleTest(SimpleHandlerTestCase): class Handler (line 2097) | class Handler(RequestHandler): method get (line 2098) | def get(self): method value (line 2101) | def value(self): method get_app_kwargs (line 2104) | def get_app_kwargs(self): method tearDown (line 2124) | def tearDown(self): method test_ui_method (line 2129) | def test_ui_method(self): class GetArgumentErrorTest (line 2138) | class GetArgumentErrorTest(SimpleHandlerTestCase): class Handler (line 2139) | class Handler(RequestHandler): method get (line 2140) | def get(self): method test_catch_error (line 2147) | def test_catch_error(self): class SetLazyPropertiesTest (line 2155) | class SetLazyPropertiesTest(SimpleHandlerTestCase): class Handler (line 2156) | class Handler(RequestHandler): method prepare (line 2157) | def prepare(self): method get_user_locale (line 2161) | def get_user_locale(self): method get_current_user (line 2164) | def get_current_user(self): method get (line 2167) | def get(self): method test_set_properties (line 2170) | def test_set_properties(self): class GetCurrentUserTest (line 2177) | class GetCurrentUserTest(WebTestCase): method get_app_kwargs (line 2178) | def get_app_kwargs(self): method tearDown (line 2203) | def tearDown(self): method get_handlers (line 2207) | def get_handlers(self): method test_get_current_user_is_lazy (line 2251) | def test_get_current_user_is_lazy(self): method test_get_current_user_works (line 2256) | def test_get_current_user_works(self): method test_get_current_user_from_ui_module_is_lazy (line 2260) | def test_get_current_user_from_ui_module_is_lazy(self): method test_get_current_user_from_ui_module_works (line 2264) | def test_get_current_user_from_ui_module_works(self): class UnimplementedHTTPMethodsTest (line 2269) | class UnimplementedHTTPMethodsTest(SimpleHandlerTestCase): class Handler (line 2270) | class Handler(RequestHandler): method test_unimplemented_standard_methods (line 2273) | def test_unimplemented_standard_methods(self): class UnimplementedNonStandardMethodsTest (line 2282) | class UnimplementedNonStandardMethodsTest(SimpleHandlerTestCase): class Handler (line 2283) | class Handler(RequestHandler): method other (line 2284) | def other(self): method test_unimplemented_patch (line 2289) | def test_unimplemented_patch(self): method test_unimplemented_other (line 2295) | def test_unimplemented_other(self): class AllHTTPMethodsTest (line 2300) | class AllHTTPMethodsTest(SimpleHandlerTestCase): class Handler (line 2301) | class Handler(RequestHandler): method method (line 2302) | def method(self): method test_standard_methods (line 2308) | def test_standard_methods(self): class PatchMethodTest (line 2319) | class PatchMethodTest(SimpleHandlerTestCase): class Handler (line 2320) | class Handler(RequestHandler): method patch (line 2325) | def patch(self): method other (line 2328) | def other(self): method test_patch (line 2331) | def test_patch(self): method test_other (line 2335) | def test_other(self): class FinishInPrepareTest (line 2340) | class FinishInPrepareTest(SimpleHandlerTestCase): class Handler (line 2341) | class Handler(RequestHandler): method prepare (line 2342) | def prepare(self): method get (line 2345) | def get(self): method test_finish_in_prepare (line 2351) | def test_finish_in_prepare(self): class Default404Test (line 2356) | class Default404Test(WebTestCase): method get_handlers (line 2357) | def get_handlers(self): method test_404 (line 2361) | def test_404(self): class Custom404Test (line 2371) | class Custom404Test(WebTestCase): method get_handlers (line 2372) | def get_handlers(self): method get_app_kwargs (line 2375) | def get_app_kwargs(self): method test_404 (line 2383) | def test_404(self): class DefaultHandlerArgumentsTest (line 2389) | class DefaultHandlerArgumentsTest(WebTestCase): method get_handlers (line 2390) | def get_handlers(self): method get_app_kwargs (line 2393) | def get_app_kwargs(self): method test_403 (line 2399) | def test_403(self): class HandlerByNameTest (line 2404) | class HandlerByNameTest(WebTestCase): method get_handlers (line 2405) | def get_handlers(self): method test_handler_by_name (line 2413) | def test_handler_by_name(self): class StreamingRequestBodyTest (line 2422) | class StreamingRequestBodyTest(WebTestCase): method get_handlers (line 2423) | def get_handlers(self): method connect (line 2461) | def connect(self, url, connection_close): method test_streaming_body (line 2473) | def test_streaming_body(self): method test_early_return (line 2496) | def test_early_return(self): method test_early_return_with_data (line 2502) | def test_early_return_with_data(self): method test_close_during_upload (line 2509) | def test_close_during_upload(self): class BaseFlowControlHandler (line 2521) | class BaseFlowControlHandler(RequestHandler): method initialize (line 2522) | def initialize(self, test): method in_method (line 2528) | def in_method(self, method): method prepare (line 2539) | def prepare(self): method post (line 2546) | def post(self): class BaseStreamingRequestFlowControlTest (line 2552) | class BaseStreamingRequestFlowControlTest: method get_httpserver_options (line 2553) | def get_httpserver_options(self): method get_http_client (line 2558) | def get_http_client(self): method test_flow_control_fixed_body (line 2563) | def test_flow_control_fixed_body(self: typing.Any): method test_flow_control_chunked_body (line 2579) | def test_flow_control_chunked_body(self: typing.Any): method test_flow_control_compressed_body (line 2602) | def test_flow_control_compressed_body(self: typing.Any): class DecoratedStreamingRequestFlowControlTest (line 2629) | class DecoratedStreamingRequestFlowControlTest( method get_handlers (line 2632) | def get_handlers(self): class NativeStreamingRequestFlowControlTest (line 2642) | class NativeStreamingRequestFlowControlTest( method get_handlers (line 2645) | def get_handlers(self): class IncorrectContentLengthTest (line 2656) | class IncorrectContentLengthTest(SimpleHandlerTestCase): method get_handlers (line 2657) | def get_handlers(self): method test_content_length_too_high (line 2682) | def test_content_length_too_high(self): method test_content_length_too_low (line 2698) | def test_content_length_too_low(self): class ClientCloseTest (line 2715) | class ClientCloseTest(SimpleHandlerTestCase): class Handler (line 2716) | class Handler(RequestHandler): method get (line 2717) | def get(self): method test_client_close (line 2730) | def test_client_close(self): class SignedValueTest (line 2738) | class SignedValueTest(unittest.TestCase): method past (line 2742) | def past(self): method present (line 2745) | def present(self): method test_known_values (line 2748) | def test_known_values(self): method test_name_swap (line 2780) | def test_name_swap(self): method test_expired (line 2797) | def test_expired(self): method test_payload_tampering (line 2810) | def test_payload_tampering(self): method test_signature_tampering (line 2827) | def test_signature_tampering(self): method test_non_ascii (line 2859) | def test_non_ascii(self): method test_key_versioning_read_write_default_key (line 2869) | def test_key_versioning_read_write_default_key(self): method test_key_versioning_read_write_non_default_key (line 2879) | def test_key_versioning_read_write_non_default_key(self): method test_key_versioning_invalid_key (line 2889) | def test_key_versioning_invalid_key(self): method test_key_version_retrieval (line 2899) | def test_key_version_retrieval(self): class XSRFTest (line 2908) | class XSRFTest(SimpleHandlerTestCase): class Handler (line 2909) | class Handler(RequestHandler): method get (line 2910) | def get(self): method post (line 2917) | def post(self): method get_app_kwargs (line 2920) | def get_app_kwargs(self): method setUp (line 2923) | def setUp(self): method get_token (line 2927) | def get_token(self, old_token=None, version=None): method cookie_headers (line 2938) | def cookie_headers(self, token=None): method test_xsrf_fail_no_token (line 2943) | def test_xsrf_fail_no_token(self): method test_xsrf_fail_body_no_cookie (line 2948) | def test_xsrf_fail_body_no_cookie(self): method test_xsrf_fail_argument_invalid_format (line 2957) | def test_xsrf_fail_argument_invalid_format(self): method test_xsrf_fail_cookie_invalid_format (line 2967) | def test_xsrf_fail_cookie_invalid_format(self): method test_xsrf_fail_cookie_no_body (line 2977) | def test_xsrf_fail_cookie_no_body(self): method test_xsrf_success_short_token (line 2984) | def test_xsrf_success_short_token(self): method test_xsrf_success_non_hex_token (line 2993) | def test_xsrf_success_non_hex_token(self): method test_xsrf_success_post_body (line 3002) | def test_xsrf_success_post_body(self): method test_xsrf_success_query_string (line 3011) | def test_xsrf_success_query_string(self): method test_xsrf_success_header (line 3020) | def test_xsrf_success_header(self): method test_distinct_tokens (line 3032) | def test_distinct_tokens(self): method test_cross_user (line 3040) | def test_cross_user(self): method test_refresh_token (line 3065) | def test_refresh_token(self): method test_versioning (line 3085) | def test_versioning(self): class XSRFCookieNameTest (line 3112) | class XSRFCookieNameTest(SimpleHandlerTestCase): class Handler (line 3113) | class Handler(RequestHandler): method get (line 3114) | def get(self): method post (line 3117) | def post(self): method get_app_kwargs (line 3120) | def get_app_kwargs(self): method setUp (line 3127) | def setUp(self): method get_token (line 3131) | def get_token(self, old_token=None): method cookie_headers (line 3140) | def cookie_headers(self, token=None): method test_xsrf_fail_no_token (line 3145) | def test_xsrf_fail_no_token(self): method test_xsrf_fail_body_no_cookie (line 3150) | def test_xsrf_fail_body_no_cookie(self): method test_xsrf_success_post_body (line 3159) | def test_xsrf_success_post_body(self): class XSRFCookieKwargsTest (line 3170) | class XSRFCookieKwargsTest(SimpleHandlerTestCase): class Handler (line 3171) | class Handler(RequestHandler): method get (line 3172) | def get(self): method get_app_kwargs (line 3175) | def get_app_kwargs(self): method test_xsrf_httponly (line 3180) | def test_xsrf_httponly(self): class FinishExceptionTest (line 3198) | class FinishExceptionTest(SimpleHandlerTestCase): class Handler (line 3199) | class Handler(RequestHandler): method get (line 3200) | def get(self): method test_finish_exception (line 3209) | def test_finish_exception(self): class DecoratorTest (line 3219) | class DecoratorTest(WebTestCase): method get_handlers (line 3220) | def get_handlers(self): method test_removeslash (line 3233) | def test_removeslash(self): method test_addslash (line 3242) | def test_addslash(self): class CacheTest (line 3252) | class CacheTest(WebTestCase): method get_handlers (line 3253) | def get_handlers(self): method test_wildcard_etag (line 3263) | def test_wildcard_etag(self): method test_strong_etag_match (line 3268) | def test_strong_etag_match(self): method test_multiple_strong_etag_match (line 3273) | def test_multiple_strong_etag_match(self): method test_strong_etag_not_match (line 3278) | def test_strong_etag_not_match(self): method test_multiple_strong_etag_not_match (line 3283) | def test_multiple_strong_etag_not_match(self): method test_weak_etag_match (line 3288) | def test_weak_etag_match(self): method test_multiple_weak_etag_match (line 3293) | def test_multiple_weak_etag_match(self): method test_weak_etag_not_match (line 3298) | def test_weak_etag_not_match(self): method test_multiple_weak_etag_not_match (line 3303) | def test_multiple_weak_etag_not_match(self): method _test_etag (line 3308) | def _test_etag(self, computed_etag, etags, status_code): class RequestSummaryTest (line 3315) | class RequestSummaryTest(SimpleHandlerTestCase): class Handler (line 3316) | class Handler(RequestHandler): method get (line 3317) | def get(self): method test_missing_remote_ip (line 3324) | def test_missing_remote_ip(self): class HTTPErrorTest (line 3329) | class HTTPErrorTest(unittest.TestCase): method test_copy (line 3330) | def test_copy(self): class ApplicationTest (line 3338) | class ApplicationTest(AsyncTestCase): method test_listen (line 3339) | def test_listen(self): class URLSpecReverseTest (line 3345) | class URLSpecReverseTest(unittest.TestCase): method test_reverse (line 3346) | def test_reverse(self): method test_non_reversible (line 3350) | def test_non_reversible(self): method test_reverse_arguments (line 3368) | def test_reverse_arguments(self): class RedirectHandlerTest (line 3378) | class RedirectHandlerTest(WebTestCase): method get_handlers (line 3379) | def get_handlers(self): method test_basic_redirect (line 3386) | def test_basic_redirect(self): method test_redirect_with_argument (line 3391) | def test_redirect_with_argument(self): method test_redirect_with_appending_argument (line 3396) | def test_redirect_with_appending_argument(self): method test_redirect_pattern (line 3401) | def test_redirect_pattern(self): class AcceptLanguageTest (line 3407) | class AcceptLanguageTest(WebTestCase): method get_handlers (line 3410) | def get_handlers(self): method test_accept_language (line 3427) | def test_accept_language(self): method test_accept_language_ignore (line 3434) | def test_accept_language_ignore(self): method test_accept_language_invalid (line 3438) | def test_accept_language_invalid(self): FILE: tornado/test/websocket_test.py class TestWebSocketHandler (line 46) | class TestWebSocketHandler(WebSocketHandler): method initialize (line 54) | def initialize(self, close_future=None, compression_options=None): method get_compression_options (line 58) | def get_compression_options(self): method on_close (line 61) | def on_close(self): class EchoHandler (line 66) | class EchoHandler(TestWebSocketHandler): method on_message (line 68) | def on_message(self, message): class ErrorInOnMessageHandler (line 77) | class ErrorInOnMessageHandler(TestWebSocketHandler): method on_message (line 78) | def on_message(self, message): class HeaderHandler (line 82) | class HeaderHandler(TestWebSocketHandler): method open (line 83) | def open(self): class HeaderEchoHandler (line 104) | class HeaderEchoHandler(TestWebSocketHandler): method set_default_headers (line 105) | def set_default_headers(self): method prepare (line 108) | def prepare(self): class NonWebSocketHandler (line 114) | class NonWebSocketHandler(RequestHandler): method get (line 115) | def get(self): class RedirectHandler (line 119) | class RedirectHandler(RequestHandler): method get (line 120) | def get(self): class CloseReasonHandler (line 124) | class CloseReasonHandler(TestWebSocketHandler): method open (line 125) | def open(self): class AsyncPrepareHandler (line 130) | class AsyncPrepareHandler(TestWebSocketHandler): method prepare (line 132) | def prepare(self): method on_message (line 135) | def on_message(self, message): class PathArgsHandler (line 139) | class PathArgsHandler(TestWebSocketHandler): method open (line 140) | def open(self, arg): class CoroutineOnMessageHandler (line 144) | class CoroutineOnMessageHandler(TestWebSocketHandler): method initialize (line 145) | def initialize(self, **kwargs): # type: ignore[override] method on_message (line 150) | def on_message(self, message): class RenderMessageHandler (line 159) | class RenderMessageHandler(TestWebSocketHandler): method on_message (line 160) | def on_message(self, message): class SubprotocolHandler (line 164) | class SubprotocolHandler(TestWebSocketHandler): method initialize (line 165) | def initialize(self, **kwargs): # type: ignore[override] method select_subprotocol (line 169) | def select_subprotocol(self, subprotocols): method open (line 177) | def open(self): class OpenCoroutineHandler (line 183) | class OpenCoroutineHandler(TestWebSocketHandler): method initialize (line 184) | def initialize(self, test, **kwargs): # type: ignore[override] method open (line 190) | def open(self): method on_message (line 195) | def on_message(self, message): class ErrorInOpenHandler (line 201) | class ErrorInOpenHandler(TestWebSocketHandler): method open (line 202) | def open(self): class ErrorInAsyncOpenHandler (line 206) | class ErrorInAsyncOpenHandler(TestWebSocketHandler): method open (line 207) | async def open(self): class NoDelayHandler (line 212) | class NoDelayHandler(TestWebSocketHandler): method open (line 213) | def open(self): class WebSocketBaseTestCase (line 218) | class WebSocketBaseTestCase(AsyncHTTPTestCase): method setUp (line 219) | def setUp(self): method tearDown (line 223) | def tearDown(self): method ws_connect (line 229) | def ws_connect(self, path, **kwargs): class WebSocketTest (line 237) | class WebSocketTest(WebSocketBaseTestCase): method get_app (line 238) | def get_app(self): method get_http_client (line 294) | def get_http_client(self): method tearDown (line 298) | def tearDown(self): method test_http_request (line 302) | def test_http_request(self): method test_missing_websocket_key (line 307) | def test_missing_websocket_key(self): method test_bad_websocket_version (line 318) | def test_bad_websocket_version(self): method test_websocket_gen (line 330) | def test_websocket_gen(self): method test_websocket_callbacks (line 336) | def test_websocket_callbacks(self): method test_binary_message (line 351) | def test_binary_message(self): method test_unicode_message (line 358) | def test_unicode_message(self): method test_error_in_closed_client_write_message (line 365) | def test_error_in_closed_client_write_message(self): method test_render_message (line 372) | def test_render_message(self): method test_error_in_on_message (line 379) | def test_error_in_on_message(self): method test_websocket_http_fail (line 387) | def test_websocket_http_fail(self): method test_websocket_http_success (line 393) | def test_websocket_http_success(self): method test_websocket_http_redirect (line 398) | def test_websocket_http_redirect(self): method test_websocket_network_fail (line 403) | def test_websocket_network_fail(self): method test_websocket_close_buffered_data (line 413) | def test_websocket_close_buffered_data(self): method test_websocket_headers (line 423) | def test_websocket_headers(self): method test_websocket_header_echo (line 439) | def test_websocket_header_echo(self): method test_server_close_reason (line 459) | def test_server_close_reason(self): method test_client_close_reason (line 474) | def test_client_close_reason(self): method test_write_after_close (line 482) | def test_write_after_close(self): method test_async_prepare (line 490) | def test_async_prepare(self): method test_path_args (line 499) | def test_path_args(self): method test_coroutine (line 505) | def test_coroutine(self): method test_check_origin_valid_no_path (line 516) | def test_check_origin_valid_no_path(self): method test_check_origin_valid_with_path (line 530) | def test_check_origin_valid_with_path(self): method test_check_origin_invalid_partial_url (line 544) | def test_check_origin_invalid_partial_url(self): method test_check_origin_invalid (line 555) | def test_check_origin_invalid(self): method test_check_origin_invalid_subdomains (line 569) | def test_check_origin_invalid_subdomains(self): method test_subprotocols (line 592) | def test_subprotocols(self): method test_subprotocols_not_offered (line 601) | def test_subprotocols_not_offered(self): method test_open_coroutine (line 608) | def test_open_coroutine(self): method test_error_in_open (line 617) | def test_error_in_open(self): method test_error_in_async_open (line 624) | def test_error_in_async_open(self): method test_nodelay (line 631) | def test_nodelay(self): class NativeCoroutineOnMessageHandler (line 637) | class NativeCoroutineOnMessageHandler(TestWebSocketHandler): method initialize (line 638) | def initialize(self, **kwargs): # type: ignore[override] method on_message (line 642) | async def on_message(self, message): class WebSocketNativeCoroutineTest (line 651) | class WebSocketNativeCoroutineTest(WebSocketBaseTestCase): method get_app (line 652) | def get_app(self): method test_native_coroutine (line 656) | def test_native_coroutine(self): class CompressionTestMixin (line 668) | class CompressionTestMixin(WebSocketBaseTestCase): method get_app (line 671) | def get_app(self): method get_server_compression_options (line 695) | def get_server_compression_options(self): method get_client_compression_options (line 698) | def get_client_compression_options(self): method verify_wire_bytes (line 701) | def verify_wire_bytes(self, bytes_in: int, bytes_out: int) -> None: method test_message_sizes (line 705) | def test_message_sizes(self): method test_size_limit (line 720) | def test_size_limit(self): class UncompressedTestMixin (line 736) | class UncompressedTestMixin(CompressionTestMixin): method verify_wire_bytes (line 739) | def verify_wire_bytes(self, bytes_in, bytes_out): class NoCompressionTest (line 745) | class NoCompressionTest(UncompressedTestMixin): class ServerOnlyCompressionTest (line 750) | class ServerOnlyCompressionTest(UncompressedTestMixin): method get_server_compression_options (line 751) | def get_server_compression_options(self): class ClientOnlyCompressionTest (line 755) | class ClientOnlyCompressionTest(UncompressedTestMixin): method get_client_compression_options (line 756) | def get_client_compression_options(self): class DefaultCompressionTest (line 760) | class DefaultCompressionTest(CompressionTestMixin): method get_server_compression_options (line 761) | def get_server_compression_options(self): method get_client_compression_options (line 764) | def get_client_compression_options(self): method verify_wire_bytes (line 767) | def verify_wire_bytes(self, bytes_in, bytes_out): class MaskFunctionMixin (line 775) | class MaskFunctionMixin(unittest.TestCase): method mask (line 777) | def mask(self, mask: bytes, data: bytes) -> bytes: method test_mask (line 780) | def test_mask(self: typing.Any): class PythonMaskFunctionTest (line 798) | class PythonMaskFunctionTest(MaskFunctionMixin): method mask (line 799) | def mask(self, mask, data): class CythonMaskFunctionTest (line 804) | class CythonMaskFunctionTest(MaskFunctionMixin): method mask (line 805) | def mask(self, mask, data): class ServerPeriodicPingTest (line 809) | class ServerPeriodicPingTest(WebSocketBaseTestCase): method get_app (line 810) | def get_app(self): method test_server_ping (line 822) | def test_server_ping(self): class ClientPeriodicPingTest (line 830) | class ClientPeriodicPingTest(WebSocketBaseTestCase): method get_app (line 831) | def get_app(self): method test_client_ping (line 839) | def test_client_ping(self): class ServerPingTimeoutTest (line 847) | class ServerPingTimeoutTest(WebSocketBaseTestCase): method get_app (line 848) | def get_app(self): method install_hook (line 865) | def install_hook(ws): method test_client_ping_timeout (line 886) | def test_client_ping_timeout(self): class PingCalculationTest (line 926) | class PingCalculationTest(unittest.TestCase): method test_ping_sleep_time (line 927) | def test_ping_sleep_time(self): class ManualPingTest (line 943) | class ManualPingTest(WebSocketBaseTestCase): method get_app (line 944) | def get_app(self): method test_manual_ping (line 952) | def test_manual_ping(self): class MaxMessageSizeTest (line 967) | class MaxMessageSizeTest(WebSocketBaseTestCase): method get_app (line 968) | def get_app(self): method test_large_message (line 972) | def test_large_message(self): FILE: tornado/test/wsgi_test.py class WSGIAppMixin (line 11) | class WSGIAppMixin: method get_executor (line 13) | def get_executor(self): method get_app (line 16) | def get_app(self): method respond_plain (line 33) | def respond_plain(self, start_response): method simple_wsgi_app (line 38) | def simple_wsgi_app(self, environ, start_response): method barrier_wsgi_app (line 42) | def barrier_wsgi_app(self, environ, start_response): method streaming_barrier_wsgi_app (line 51) | def streaming_barrier_wsgi_app(self, environ, start_response): class WSGIContainerDummyExecutorTest (line 62) | class WSGIContainerDummyExecutorTest(WSGIAppMixin, AsyncHTTPTestCase): method get_executor (line 63) | def get_executor(self): method test_simple (line 66) | def test_simple(self): method test_concurrent_barrier (line 71) | async def test_concurrent_barrier(self): method test_concurrent_streaming_barrier (line 81) | async def test_concurrent_streaming_barrier(self): class WSGIContainerThreadPoolTest (line 91) | class WSGIContainerThreadPoolTest(WSGIAppMixin, AsyncHTTPTestCase): method get_executor (line 92) | def get_executor(self): method test_simple (line 95) | def test_simple(self): method test_concurrent_barrier (line 100) | async def test_concurrent_barrier(self): method test_concurrent_streaming_barrier (line 109) | async def test_concurrent_streaming_barrier(self): FILE: tornado/testing.py function bind_unused_port (line 46) | def bind_unused_port( function get_async_test_timeout (line 68) | def get_async_test_timeout() -> float: class AsyncTestCase (line 84) | class AsyncTestCase(unittest.TestCase): method __init__ (line 132) | def __init__(self, methodName: str = "runTest") -> None: method setUp (line 143) | def setUp(self) -> None: method tearDown (line 161) | def tearDown(self) -> None: method get_new_ioloop (line 205) | def get_new_ioloop(self) -> IOLoop: method _handle_exception (line 221) | def _handle_exception( method __rethrow (line 233) | def __rethrow(self) -> None: method run (line 239) | def run( method _callTestMethod (line 250) | def _callTestMethod(self, method: Callable) -> None: method stop (line 274) | def stop(self, _arg: Any = None, **kwargs: Any) -> None: method wait (line 292) | def wait( class AsyncHTTPTestCase (line 348) | class AsyncHTTPTestCase(AsyncTestCase): method setUp (line 381) | def setUp(self) -> None: method get_http_client (line 391) | def get_http_client(self) -> AsyncHTTPClient: method get_http_server (line 394) | def get_http_server(self) -> HTTPServer: method get_app (line 397) | def get_app(self) -> Application: method fetch (line 403) | def fetch( method get_httpserver_options (line 448) | def get_httpserver_options(self) -> dict[str, Any]: method get_http_port (line 454) | def get_http_port(self) -> int: method get_protocol (line 461) | def get_protocol(self) -> str: method get_url (line 464) | def get_url(self, path: str) -> str: method tearDown (line 468) | def tearDown(self) -> None: class AsyncHTTPSTestCase (line 479) | class AsyncHTTPSTestCase(AsyncHTTPTestCase): method get_http_client (line 485) | def get_http_client(self) -> AsyncHTTPClient: method get_httpserver_options (line 488) | def get_httpserver_options(self) -> dict[str, Any]: method get_ssl_options (line 491) | def get_ssl_options(self) -> dict[str, Any]: method default_ssl_options (line 499) | def default_ssl_options() -> dict[str, Any]: method get_protocol (line 511) | def get_protocol(self) -> str: function gen_test (line 516) | def gen_test( function gen_test (line 523) | def gen_test(func: Callable[..., Union[Generator, "Coroutine"]]) -> Call... function gen_test (line 527) | def gen_test( class ExpectLog (line 639) | class ExpectLog(logging.Filter): method __init__ (line 657) | def __init__( method filter (line 701) | def filter(self, record: logging.LogRecord) -> bool: method __enter__ (line 723) | def __enter__(self) -> "ExpectLog": method __exit__ (line 730) | def __exit__( function setup_with_context_manager (line 753) | def setup_with_context_manager(testcase: unittest.TestCase, cm: Any) -> ... function main (line 770) | def main(**kwargs: Any) -> None: FILE: tornado/util.py class ObjectDict (line 48) | class ObjectDict(dict[str, Any]): method __getattr__ (line 51) | def __getattr__(self, name: str) -> Any: method __setattr__ (line 57) | def __setattr__(self, name: str, value: Any) -> None: class GzipDecompressor (line 61) | class GzipDecompressor: method __init__ (line 68) | def __init__(self) -> None: method decompress (line 74) | def decompress(self, value: bytes, max_length: int = 0) -> bytes: method unconsumed_tail (line 88) | def unconsumed_tail(self) -> bytes: method flush (line 92) | def flush(self) -> bytes: function import_object (line 101) | def import_object(name: str) -> Any: function exec_in (line 130) | def exec_in( function raise_exc_info (line 140) | def raise_exc_info( function errno_from_exception (line 154) | def errno_from_exception(e: BaseException) -> int | None: function _re_unescape_replacement (line 175) | def _re_unescape_replacement(match: Match[str]) -> str: function re_unescape (line 185) | def re_unescape(s: str) -> str: class Configurable (line 197) | class Configurable: method __new__ (line 235) | def __new__(cls, *args: Any, **kwargs: Any) -> Any: method configurable_base (line 256) | def configurable_base(cls) -> type[Configurable]: method configurable_default (line 267) | def configurable_default(cls) -> type[Configurable]: method _initialize (line 271) | def _initialize(self) -> None: method configure (line 284) | def configure(cls, impl: None | str | type[Configurable], **kwargs: An... method configured_class (line 300) | def configured_class(cls) -> type[Configurable]: method _save_configuration (line 315) | def _save_configuration( method _restore_configuration (line 322) | def _restore_configuration( class ArgReplacer (line 330) | class ArgReplacer: method __init__ (line 338) | def __init__(self, func: Callable, name: str) -> None: method _getargnames (line 346) | def _getargnames(self, func: Callable) -> list[str]: method get_old_value (line 361) | def get_old_value( method replace (line 373) | def replace( function timedelta_to_seconds (line 397) | def timedelta_to_seconds(td: datetime.timedelta) -> float: function _websocket_mask_python (line 402) | def _websocket_mask_python(mask: bytes, data: bytes) -> bytes: function doctests (line 431) | def doctests() -> unittest.TestSuite: FILE: tornado/web.py class _ArgDefaultMarker (line 156) | class _ArgDefaultMarker: class RequestHandler (line 163) | class RequestHandler: method __init__ (line 196) | def __init__( method _initialize (line 228) | def _initialize(self) -> None: method settings (line 252) | def settings(self) -> dict[str, Any]: method _unimplemented_method (line 256) | def _unimplemented_method(self, *args: str, **kwargs: str) -> None: method prepare (line 267) | def prepare(self) -> Awaitable[None] | None: method on_finish (line 284) | def on_finish(self) -> None: method on_connection_close (line 298) | def on_connection_close(self) -> None: method clear (line 317) | def clear(self) -> None: method set_default_headers (line 331) | def set_default_headers(self) -> None: method set_status (line 341) | def set_status(self, status_code: int, reason: str | None = None) -> N... method get_status (line 370) | def get_status(self) -> int: method set_header (line 374) | def set_header(self, name: str, value: _HeaderTypes) -> None: method add_header (line 384) | def add_header(self, name: str, value: _HeaderTypes) -> None: method clear_header (line 392) | def clear_header(self, name: str) -> None: method _convert_header_value (line 404) | def _convert_header_value(self, value: _HeaderTypes) -> str: method get_argument (line 429) | def get_argument(self, name: str, default: str, strip: bool = True) ->... method get_argument (line 433) | def get_argument( method get_argument (line 439) | def get_argument(self, name: str, default: None, strip: bool = True) -... method get_argument (line 442) | def get_argument( method get_arguments (line 460) | def get_arguments(self, name: str, strip: bool = True) -> list[str]: method get_body_argument (line 476) | def get_body_argument(self, name: str, default: str, strip: bool = Tru... method get_body_argument (line 480) | def get_body_argument( method get_body_argument (line 486) | def get_body_argument( method get_body_argument (line 491) | def get_body_argument( method get_body_arguments (line 510) | def get_body_arguments(self, name: str, strip: bool = True) -> list[str]: method get_query_argument (line 520) | def get_query_argument(self, name: str, default: str, strip: bool = Tr... method get_query_argument (line 524) | def get_query_argument( method get_query_argument (line 530) | def get_query_argument( method get_query_argument (line 535) | def get_query_argument( method get_query_arguments (line 554) | def get_query_arguments(self, name: str, strip: bool = True) -> list[s... method _get_argument (line 563) | def _get_argument( method _get_arguments (line 577) | def _get_arguments( method decode_argument (line 592) | def decode_argument(self, value: bytes, name: str | None = None) -> str: method cookies (line 613) | def cookies(self) -> dict[str, http.cookies.Morsel]: method get_cookie (line 619) | def get_cookie(self, name: str, default: str) -> str: method get_cookie (line 623) | def get_cookie(self, name: str, default: None = None) -> str | None: method get_cookie (line 626) | def get_cookie(self, name: str, default: str | None = None) -> str | N... method set_cookie (line 639) | def set_cookie( method clear_cookie (line 742) | def clear_cookie(self, name: str, **kwargs: Any) -> None: method clear_all_cookies (line 770) | def clear_all_cookies(self, **kwargs: Any) -> None: method set_signed_cookie (line 801) | def set_signed_cookie( method create_signed_value (line 848) | def create_signed_value( method get_signed_cookie (line 874) | def get_signed_cookie( method get_signed_cookie_key_version (line 915) | def get_signed_cookie_key_version( method redirect (line 939) | def redirect( method write (line 959) | def write(self, chunk: str | bytes | dict) -> None: method render (line 991) | def render(self, template_name: str, **kwargs: Any) -> "Future[None]": method render_linked_js (line 1066) | def render_linked_js(self, js_files: Iterable[str]) -> str: method render_embed_js (line 1089) | def render_embed_js(self, js_embed: Iterable[bytes]) -> bytes: method render_linked_css (line 1101) | def render_linked_css(self, css_files: Iterable[str]) -> str: method render_embed_css (line 1123) | def render_embed_css(self, css_embed: Iterable[bytes]) -> bytes: method render_string (line 1131) | def render_string(self, template_name: str, **kwargs: Any) -> bytes: method get_template_namespace (line 1157) | def get_template_namespace(self) -> dict[str, Any]: method create_template_loader (line 1180) | def create_template_loader(self, template_path: str) -> template.BaseL... method flush (line 1201) | def flush(self, include_footers: bool = False) -> "Future[None]": method finish (line 1251) | def finish(self, chunk: str | bytes | dict | None = None) -> "Future[N... method detach (line 1308) | def detach(self) -> iostream.IOStream: method _break_cycles (line 1323) | def _break_cycles(self) -> None: method send_error (line 1328) | def send_error(self, status_code: int = 500, **kwargs: Any) -> None: method write_error (line 1367) | def write_error(self, status_code: int, **kwargs: Any) -> None: method locale (line 1393) | def locale(self) -> tornado.locale.Locale: method locale (line 1414) | def locale(self, value: tornado.locale.Locale) -> None: method get_user_locale (line 1417) | def get_user_locale(self) -> tornado.locale.Locale | None: method get_browser_locale (line 1427) | def get_browser_locale(self, default: str = "en_US") -> tornado.locale... method current_user (line 1455) | def current_user(self) -> Any: method current_user (line 1491) | def current_user(self, value: Any) -> None: method get_current_user (line 1494) | def get_current_user(self) -> Any: method get_login_url (line 1501) | def get_login_url(self) -> str: method get_template_path (line 1509) | def get_template_path(self) -> str | None: method xsrf_token (line 1518) | def xsrf_token(self) -> bytes: method _get_raw_xsrf_token (line 1575) | def _get_raw_xsrf_token(self) -> tuple[int | None, bytes, float]: method _decode_xsrf_token (line 1602) | def _decode_xsrf_token( method check_xsrf_cookie (line 1638) | def check_xsrf_cookie(self) -> None: method xsrf_form_html (line 1676) | def xsrf_form_html(self) -> str: method static_url (line 1695) | def static_url( method require_setting (line 1733) | def require_setting(self, name: str, feature: str = "this feature") ->... method reverse_url (line 1741) | def reverse_url(self, name: str, *args: Any) -> str: method compute_etag (line 1745) | def compute_etag(self) -> str | None: method set_etag_header (line 1758) | def set_etag_header(self) -> None: method check_etag_header (line 1769) | def check_etag_header(self) -> bool: method _execute (line 1809) | async def _execute( method data_received (line 1878) | def data_received(self, chunk: bytes) -> Awaitable[None] | None: method _log (line 1887) | def _log(self) -> None: method _request_summary (line 1896) | def _request_summary(self) -> str: method _handle_request_exception (line 1903) | def _handle_request_exception(self, e: BaseException) -> None: method log_exception (line 1925) | def log_exception( method _ui_module (line 1954) | def _ui_module(self, name: str, module: type["UIModule"]) -> Callable[... method _ui_method (line 1965) | def _ui_method(self, method: Callable[..., str]) -> Callable[..., str]: method _clear_representation_headers (line 1968) | def _clear_representation_headers(self) -> None: function stream_request_body (line 1982) | def stream_request_body(cls: type[_RequestHandlerType]) -> type[_Request... function _has_stream_request_body (line 2009) | def _has_stream_request_body(cls: type[RequestHandler]) -> bool: function removeslash (line 2015) | def removeslash( function addslash (line 2044) | def addslash( class _ApplicationRouter (line 2071) | class _ApplicationRouter(ReversibleRuleRouter): method __init__ (line 2082) | def __init__( method process_rule (line 2089) | def process_rule(self, rule: Rule) -> Rule: method get_target_delegate (line 2099) | def get_target_delegate( class Application (line 2110) | class Application(ReversibleRouter): method __init__ (line 2193) | def __init__( method listen (line 2249) | def listen( method add_handlers (line 2293) | def add_handlers(self, host_pattern: str, host_handlers: _RuleList) ->... method add_transform (line 2309) | def add_transform(self, transform_class: type["OutputTransform"]) -> N... method _load_ui_methods (line 2312) | def _load_ui_methods(self, methods: Any) -> None: method _load_ui_modules (line 2327) | def _load_ui_modules(self, modules: Any) -> None: method __call__ (line 2342) | def __call__(self, request: httputil.HTTPServerRequest) -> Awaitable[N... method find_handler (line 2347) | def find_handler( method get_handler_delegate (line 2363) | def get_handler_delegate( method reverse_url (line 2385) | def reverse_url(self, name: str, *args: Any) -> str: method log_request (line 2400) | def log_request(self, handler: RequestHandler) -> None: class _HandlerDelegate (line 2426) | class _HandlerDelegate(httputil.HTTPMessageDelegate): method __init__ (line 2427) | def __init__( method headers_received (line 2446) | def headers_received( method data_received (line 2456) | def data_received(self, data: bytes) -> Awaitable[None] | None: method finish (line 2463) | def finish(self) -> None: method on_connection_close (line 2472) | def on_connection_close(self) -> None: method execute (line 2478) | def execute(self) -> Awaitable[None] | None: class HTTPError (line 2516) | class HTTPError(Exception): method __init__ (line 2541) | def __init__( method log_message (line 2554) | def log_message(self) -> str | None: method get_message (line 2562) | def get_message(self) -> str | None: method __str__ (line 2567) | def __str__(self) -> str: class Finish (line 2579) | class Finish(Exception): class MissingArgumentError (line 2607) | class MissingArgumentError(HTTPError): method __init__ (line 2616) | def __init__(self, arg_name: str) -> None: class ErrorHandler (line 2621) | class ErrorHandler(RequestHandler): method initialize (line 2624) | def initialize(self, status_code: int) -> None: method prepare (line 2627) | def prepare(self) -> None: method check_xsrf_cookie (line 2630) | def check_xsrf_cookie(self) -> None: class RedirectHandler (line 2637) | class RedirectHandler(RequestHandler): method initialize (line 2670) | def initialize(self, url: str, permanent: bool = True) -> None: method get (line 2674) | def get(self, *args: Any, **kwargs: Any) -> None: class StaticFileHandler (line 2685) | class StaticFileHandler(RequestHandler): method initialize (line 2757) | def initialize(self, path: str, default_filename: str | None = None) -... method reset (line 2762) | def reset(cls) -> None: method head (line 2766) | def head(self, path: str) -> Awaitable[None]: method get (line 2769) | async def get(self, path: str, include_body: bool = True) -> None: method compute_etag (line 2852) | def compute_etag(self) -> str | None: method set_headers (line 2867) | def set_headers(self) -> None: method should_return_304 (line 2893) | def should_return_304(self) -> bool: method get_absolute_path (line 2919) | def get_absolute_path(cls, root: str, path: str) -> str: method validate_absolute_path (line 2935) | def validate_absolute_path(self, root: str, absolute_path: str) -> str... method get_content (line 2995) | def get_content( method get_content_version (line 3034) | def get_content_version(cls, abspath: str) -> str: method _stat (line 3051) | def _stat(self) -> os.stat_result: method get_content_size (line 3057) | def get_content_size(self) -> int: method get_modified_time (line 3071) | def get_modified_time(self) -> datetime.datetime | None: method get_content_type (line 3097) | def get_content_type(self) -> str: method set_extra_headers (line 3118) | def set_extra_headers(self, path: str) -> None: method get_cache_time (line 3122) | def get_cache_time( method make_static_url (line 3138) | def make_static_url( method parse_url_path (line 3169) | def parse_url_path(self, url_path: str) -> str: method get_version (line 3183) | def get_version(cls, settings: dict[str, Any], path: str) -> str | None: method _get_cached_version (line 3200) | def _get_cached_version(cls, abs_path: str) -> str | None: class FallbackHandler (line 3215) | class FallbackHandler(RequestHandler): method initialize (line 3232) | def initialize( method prepare (line 3237) | def prepare(self) -> None: class OutputTransform (line 3243) | class OutputTransform: method __init__ (line 3251) | def __init__(self, request: httputil.HTTPServerRequest) -> None: method transform_first_chunk (line 3254) | def transform_first_chunk( method transform_chunk (line 3263) | def transform_chunk(self, chunk: bytes, finishing: bool) -> bytes: class GZipContentEncoding (line 3267) | class GZipContentEncoding(OutputTransform): method __init__ (line 3300) | def __init__(self, request: httputil.HTTPServerRequest) -> None: method _compressible_type (line 3303) | def _compressible_type(self, ctype: str) -> bool: method transform_first_chunk (line 3306) | def transform_first_chunk( method transform_chunk (line 3343) | def transform_chunk(self, chunk: bytes, finishing: bool) -> bytes: function authenticated (line 3356) | def authenticated( class UIModule (line 3393) | class UIModule: method __init__ (line 3403) | def __init__(self, handler: RequestHandler) -> None: method current_user (line 3410) | def current_user(self) -> Any: method render (line 3413) | def render(self, *args: Any, **kwargs: Any) -> str | bytes: method embedded_javascript (line 3417) | def embedded_javascript(self) -> str | None: method javascript_files (line 3422) | def javascript_files(self) -> Iterable[str] | None: method embedded_css (line 3430) | def embedded_css(self) -> str | None: method css_files (line 3435) | def css_files(self) -> Iterable[str] | None: method html_head (line 3443) | def html_head(self) -> str | None: method html_body (line 3449) | def html_body(self) -> str | None: method render_string (line 3455) | def render_string(self, path: str, **kwargs: Any) -> bytes: class _linkify (line 3460) | class _linkify(UIModule): method render (line 3461) | def render(self, text: str, **kwargs: Any) -> str: class _xsrf_form_html (line 3465) | class _xsrf_form_html(UIModule): method render (line 3466) | def render(self) -> str: class TemplateModule (line 3470) | class TemplateModule(UIModule): method __init__ (line 3486) | def __init__(self, handler: RequestHandler) -> None: method render (line 3492) | def render(self, path: str, **kwargs: Any) -> bytes: method _get_resources (line 3507) | def _get_resources(self, key: str) -> Iterable[str]: method embedded_javascript (line 3510) | def embedded_javascript(self) -> str: method javascript_files (line 3513) | def javascript_files(self) -> Iterable[str]: method embedded_css (line 3522) | def embedded_css(self) -> str: method css_files (line 3525) | def css_files(self) -> Iterable[str]: method html_head (line 3534) | def html_head(self) -> str: method html_body (line 3537) | def html_body(self) -> str: class _UIModuleNamespace (line 3541) | class _UIModuleNamespace: method __init__ (line 3544) | def __init__( method __getitem__ (line 3550) | def __getitem__(self, key: str) -> Callable[..., str]: method __getattr__ (line 3553) | def __getattr__(self, key: str) -> Callable[..., str]: function create_signed_value (line 3560) | def create_signed_value( function _get_version (line 3627) | def _get_version(value: bytes) -> int: function decode_signed_value (line 3650) | def decode_signed_value( function _decode_signed_value_v1 (line 3681) | def _decode_signed_value_v1( function _decode_fields_v2 (line 3716) | def _decode_fields_v2(value: bytes) -> tuple[int, bytes, bytes, bytes, b... function _decode_signed_value_v2 (line 3736) | def _decode_signed_value_v2( function get_signature_key_version (line 3776) | def get_signature_key_version(value: str | bytes) -> int | None: function _create_signature_v1 (line 3789) | def _create_signature_v1(secret: str | bytes, *parts: str | bytes) -> by... function _create_signature_v2 (line 3796) | def _create_signature_v2(secret: str | bytes, s: bytes) -> bytes: function is_absolute (line 3802) | def is_absolute(path: str) -> bool: FILE: tornado/websocket.py class _Compressor (line 52) | class _Compressor(Protocol): method compress (line 53) | def compress(self, data: bytes) -> bytes: method flush (line 56) | def flush(self, mode: int) -> bytes: class _Decompressor (line 60) | class _Decompressor(Protocol): method unconsumed_tail (line 62) | def unconsumed_tail(self) -> bytes: method decompress (line 65) | def decompress(self, data: bytes, max_length: int) -> bytes: class _WebSocketDelegate (line 69) | class _WebSocketDelegate(Protocol): method on_ws_connection_close (line 73) | def on_ws_connection_close( method on_message (line 78) | def on_message(self, message: str | bytes) -> Optional["Awaitable[None... method on_ping (line 81) | def on_ping(self, data: bytes) -> None: method on_pong (line 84) | def on_pong(self, data: bytes) -> None: method log_exception (line 87) | def log_exception( class WebSocketError (line 102) | class WebSocketError(Exception): class WebSocketClosedError (line 106) | class WebSocketClosedError(WebSocketError): class _DecompressTooLargeError (line 115) | class _DecompressTooLargeError(Exception): class _WebSocketParams (line 119) | class _WebSocketParams: method __init__ (line 120) | def __init__( class WebSocketHandler (line 133) | class WebSocketHandler(tornado.web.RequestHandler): method __init__ (line 214) | def __init__( method get (line 226) | async def get(self, *args: Any, **kwargs: Any) -> None: method ping_interval (line 279) | def ping_interval(self) -> float | None: method ping_timeout (line 294) | def ping_timeout(self) -> float | None: method max_message_size (line 319) | def max_message_size(self) -> int: method write_message (line 331) | def write_message( method select_subprotocol (line 361) | def select_subprotocol(self, subprotocols: list[str]) -> str | None: method selected_subprotocol (line 387) | def selected_subprotocol(self) -> str | None: method get_compression_options (line 395) | def get_compression_options(self) -> dict[str, Any] | None: method _open (line 419) | def _open(self, *args: str, **kwargs: str) -> Awaitable[None] | None: method on_message (line 437) | def on_message(self, message: str | bytes) -> Awaitable[None] | None: method ping (line 448) | def ping(self, data: str | bytes = b"") -> None: method on_pong (line 469) | def on_pong(self, data: bytes) -> None: method on_ping (line 473) | def on_ping(self, data: bytes) -> None: method on_close (line 477) | def on_close(self) -> None: method close (line 490) | def close(self, code: int | None = None, reason: str | None = None) ->... method check_origin (line 510) | def check_origin(self, origin: str) -> bool: method set_nodelay (line 566) | def set_nodelay(self, value: bool) -> None: method on_connection_close (line 583) | def on_connection_close(self) -> None: method on_ws_connection_close (line 592) | def on_ws_connection_close( method _break_cycles (line 599) | def _break_cycles(self) -> None: method get_websocket_protocol (line 608) | def get_websocket_protocol(self) -> Optional["WebSocketProtocol"]: method _detach_stream (line 620) | def _detach_stream(self) -> IOStream: function _raise_not_supported_for_websockets (line 635) | def _raise_not_supported_for_websockets(*args: Any, **kwargs: Any) -> None: class WebSocketProtocol (line 639) | class WebSocketProtocol(abc.ABC): method __init__ (line 642) | def __init__(self, handler: "_WebSocketDelegate") -> None: method _run_callback (line 648) | def _run_callback( method on_connection_close (line 669) | def on_connection_close(self) -> None: method _abort (line 672) | def _abort(self) -> None: method close (line 681) | def close(self, code: int | None = None, reason: str | None = None) ->... method is_closing (line 685) | def is_closing(self) -> bool: method accept_connection (line 689) | async def accept_connection(self, handler: WebSocketHandler) -> None: method write_message (line 693) | def write_message( method selected_subprotocol (line 700) | def selected_subprotocol(self) -> str | None: method write_ping (line 704) | def write_ping(self, data: bytes) -> None: method _process_server_headers (line 712) | def _process_server_headers( method start_pinging (line 718) | def start_pinging(self) -> None: method _receive_frame_loop (line 722) | async def _receive_frame_loop(self) -> None: method set_nodelay (line 726) | def set_nodelay(self, x: bool) -> None: class _PerMessageDeflateCompressor (line 730) | class _PerMessageDeflateCompressor: method __init__ (line 731) | def __init__( method _create_compressor (line 766) | def _create_compressor(self) -> "_Compressor": method compress (line 771) | def compress(self, data: bytes) -> bytes: class _PerMessageDeflateDecompressor (line 778) | class _PerMessageDeflateDecompressor: method __init__ (line 779) | def __init__( method _create_decompressor (line 801) | def _create_decompressor(self) -> "_Decompressor": method decompress (line 804) | def decompress(self, data: bytes) -> bytes: class WebSocketProtocol13 (line 814) | class WebSocketProtocol13(WebSocketProtocol): method __init__ (line 831) | def __init__( method selected_subprotocol (line 868) | def selected_subprotocol(self) -> str | None: method selected_subprotocol (line 872) | def selected_subprotocol(self, value: str | None) -> None: method accept_connection (line 875) | async def accept_connection(self, handler: WebSocketHandler) -> None: method _handle_websocket_headers (line 895) | def _handle_websocket_headers(self, handler: WebSocketHandler) -> None: method compute_accept_value (line 906) | def compute_accept_value(key: str | bytes) -> str: method _challenge_response (line 915) | def _challenge_response(self, handler: WebSocketHandler) -> str: method _accept_connection (line 920) | async def _accept_connection(self, handler: WebSocketHandler) -> None: method _parse_extensions_header (line 971) | def _parse_extensions_header( method _process_server_headers (line 979) | def _process_server_headers( method _get_compressor_options (line 1000) | def _get_compressor_options( method _create_compressors (line 1020) | def _create_compressors( method _write_frame (line 1047) | def _write_frame( method write_message (line 1080) | def write_message( method write_ping (line 1115) | def write_ping(self, data: bytes) -> None: method _receive_frame_loop (line 1120) | async def _receive_frame_loop(self) -> None: method _read_bytes (line 1128) | async def _read_bytes(self, n: int) -> bytes: method _receive_frame (line 1133) | async def _receive_frame(self) -> None: method _handle_message (line 1216) | def _handle_message(self, opcode: int, data: bytes) -> "Optional[Futur... method close (line 1267) | def close(self, code: int | None = None, reason: str | None = None) ->... method is_closing (line 1299) | def is_closing(self) -> bool: method set_nodelay (line 1308) | def set_nodelay(self, x: bool) -> None: method ping_interval (line 1312) | def ping_interval(self) -> float: method ping_timeout (line 1319) | def ping_timeout(self) -> float: method start_pinging (line 1335) | def start_pinging(self) -> None: method ping_sleep_time (line 1346) | def ping_sleep_time(*, last_ping_time: float, interval: float, now: fl... method periodic_ping (line 1350) | async def periodic_ping(self) -> None: class WebSocketClientConnection (line 1384) | class WebSocketClientConnection(simple_httpclient._HTTPConnection): method __init__ (line 1393) | def __init__( method __del__ (line 1455) | def __del__(self) -> None: method close (line 1464) | def close(self, code: int | None = None, reason: str | None = None) ->... method on_connection_close (line 1480) | def on_connection_close(self) -> None: method on_ws_connection_close (line 1487) | def on_ws_connection_close( method _on_http_response (line 1494) | def _on_http_response(self, response: httpclient.HTTPResponse) -> None: method headers_received (line 1503) | async def headers_received( method write_message (line 1533) | def write_message( method read_message (line 1549) | def read_message( method on_message (line 1569) | def on_message(self, message: str | bytes) -> Awaitable[None] | None: method _on_message (line 1572) | def _on_message(self, message: None | str | bytes) -> Awaitable[None] ... method ping (line 1579) | def ping(self, data: bytes = b"") -> None: method on_pong (line 1598) | def on_pong(self, data: bytes) -> None: method on_ping (line 1601) | def on_ping(self, data: bytes) -> None: method get_websocket_protocol (line 1604) | def get_websocket_protocol(self) -> WebSocketProtocol: method selected_subprotocol (line 1608) | def selected_subprotocol(self) -> str | None: method log_exception (line 1616) | def log_exception( function websocket_connect (line 1627) | def websocket_connect( FILE: tornado/wsgi.py function to_wsgi_str (line 52) | def to_wsgi_str(s: bytes) -> str: class WSGIContainer (line 57) | class WSGIContainer: method __init__ (line 123) | def __init__( method __call__ (line 131) | def __call__(self, request: httputil.HTTPServerRequest) -> None: method handle_request (line 134) | async def handle_request(self, request: httputil.HTTPServerRequest) ->... method environ (line 205) | def environ(self, request: httputil.HTTPServerRequest) -> dict[str, Any]: method _log (line 245) | def _log(self, status_code: int, request: httputil.HTTPServerRequest) ...