SYMBOL INDEX (719 symbols across 59 files) FILE: docs/plugins/main.py function on_page_content (line 12) | def on_page_content(html: str, page: Page, config: Config, files: Files)... function add_hyperlink_to_pull_request (line 18) | def add_hyperlink_to_pull_request(html: str, page: Page, config: Config,... function on_page_markdown (line 29) | def on_page_markdown(markdown: str, page: Page, config: Config, files: F... function uvicorn_print_help (line 35) | def uvicorn_print_help(markdown: str, page: Page) -> str: function get_uvicorn_help (line 40) | def get_uvicorn_help(): FILE: tests/benchmarks/http.py class MockTransport (line 78) | class MockTransport: method __init__ (line 79) | def __init__(self) -> None: method get_extra_info (line 84) | def get_extra_info(self, key: Any) -> Any: method write (line 91) | def write(self, data: bytes) -> None: method close (line 94) | def close(self) -> None: method pause_reading (line 97) | def pause_reading(self) -> None: method resume_reading (line 100) | def resume_reading(self) -> None: method is_closing (line 103) | def is_closing(self) -> bool: method clear_buffer (line 106) | def clear_buffer(self) -> None: method set_protocol (line 109) | def set_protocol(self, protocol: asyncio.Protocol) -> None: class MockTimerHandle (line 113) | class MockTimerHandle: method __init__ (line 114) | def __init__( method cancel (line 123) | def cancel(self) -> None: class MockLoop (line 129) | class MockLoop: method __init__ (line 130) | def __init__(self) -> None: method create_task (line 134) | def create_task(self, coroutine: Any) -> Any: method call_later (line 138) | def call_later(self, delay: float, callback: Callable[[], None], *args... method run_one (line 143) | async def run_one(self) -> Any: class MockTask (line 147) | class MockTask: method add_done_callback (line 148) | def add_done_callback(self, callback: Callable[[], None]) -> None: class MockProtocol (line 152) | class MockProtocol(asyncio.Protocol): function make_config (line 160) | def make_config(app: ASGIApplication, **kwargs: Any) -> Config: function get_connected_protocol (line 164) | def get_connected_protocol( FILE: tests/benchmarks/test_http.py function _body_echo_app (line 36) | async def _body_echo_app(scope: Scope, receive: ASGIReceiveCallable, sen... function test_bench_simple_get (line 51) | async def test_bench_simple_get(http_protocol_cls: type[HTTPProtocol]) -... function test_bench_simple_post (line 57) | async def test_bench_simple_post(http_protocol_cls: type[HTTPProtocol]) ... function test_bench_large_post (line 63) | async def test_bench_large_post(http_protocol_cls: type[HTTPProtocol]) -... function test_bench_pipelined_requests (line 69) | async def test_bench_pipelined_requests(http_protocol_cls: type[HTTPProt... function test_bench_keepalive_reuse (line 77) | async def test_bench_keepalive_reuse(http_protocol_cls: type[HTTPProtoco... function test_bench_chunked_response (line 85) | async def test_bench_chunked_response(http_protocol_cls: type[HTTPProtoc... function test_bench_http10 (line 91) | async def test_bench_http10(http_protocol_cls: type[HTTPProtocol]) -> None: function test_bench_connection_close (line 97) | async def test_bench_connection_close(http_protocol_cls: type[HTTPProtoc... function test_bench_fragmented_body (line 103) | async def test_bench_fragmented_body(http_protocol_cls: type[HTTPProtoco... function test_bench_post_body_receive (line 111) | async def test_bench_post_body_receive(http_protocol_cls: type[HTTPProto... FILE: tests/benchmarks/test_ws.py function ws_cls (line 28) | def ws_cls(request: pytest.FixtureRequest) -> WSProtocolClass: function _ws_accept_close_app (line 38) | async def _ws_accept_close_app(scope: Scope, receive: ASGIReceiveCallabl... function _ws_send_text_app (line 44) | async def _ws_send_text_app(scope: Scope, receive: ASGIReceiveCallable, ... function test_bench_ws_handshake (line 55) | async def test_bench_ws_handshake(ws_cls: WSProtocolClass) -> None: function test_bench_ws_send_text (line 61) | async def test_bench_ws_send_text(ws_cls: WSProtocolClass) -> None: FILE: tests/benchmarks/ws.py function get_connected_ws_protocol (line 33) | def get_connected_ws_protocol(config: Config, ws_protocol_cls: WSProtoco... FILE: tests/conftest.py function tls_certificate_authority (line 42) | def tls_certificate_authority() -> trustme.CA: function tls_certificate (line 49) | def tls_certificate(tls_certificate_authority: trustme.CA) -> trustme.Le... function tls_ca_certificate_pem_path (line 58) | def tls_ca_certificate_pem_path(tls_certificate_authority: trustme.CA): function tls_ca_certificate_private_key_path (line 64) | def tls_ca_certificate_private_key_path(tls_certificate_authority: trust... function tls_certificate_private_key_encrypted_path (line 70) | def tls_certificate_private_key_encrypted_path(tls_certificate): function tls_certificate_private_key_path (line 86) | def tls_certificate_private_key_path(tls_certificate: trustme.CA): function tls_certificate_key_and_chain_path (line 92) | def tls_certificate_key_and_chain_path(tls_certificate: trustme.LeafCert): function tls_certificate_server_cert_path (line 98) | def tls_certificate_server_cert_path(tls_certificate: trustme.LeafCert): function tls_ca_ssl_context (line 104) | def tls_ca_ssl_context(tls_certificate_authority: trustme.CA) -> ssl.SSL... function reload_directory_structure (line 111) | def reload_directory_structure(tmp_path_factory: pytest.TempPathFactory): function anyio_backend (line 171) | def anyio_backend() -> str: function logging_config (line 176) | def logging_config() -> dict[str, Any]: function short_socket_name (line 181) | def short_socket_name(tmp_path, tmp_path_factory): # pragma: py-win32 function _unused_port (line 215) | def _unused_port(socket_type: int) -> int: function unused_tcp_port (line 225) | def unused_tcp_port() -> int: function ws_protocol_cls (line 242) | def ws_protocol_cls(request: pytest.FixtureRequest): function http_protocol_cls (line 259) | def http_protocol_cls(request: pytest.FixtureRequest): FILE: tests/custom_loop_utils.py class CustomLoop (line 6) | class CustomLoop(asyncio.SelectorEventLoop): FILE: tests/importer/test_importer.py function test_invalid_format (line 6) | def test_invalid_format() -> None: function test_invalid_module (line 13) | def test_invalid_module() -> None: function test_invalid_attr (line 20) | def test_invalid_attr() -> None: function test_internal_import_error (line 27) | def test_internal_import_error() -> None: function test_valid_import (line 32) | def test_valid_import() -> None: function test_no_import_needed (line 39) | def test_no_import_needed() -> None: function test_circular_import_error (line 46) | def test_circular_import_error() -> None: FILE: tests/middleware/test_logging.py function caplog_for_logger (line 31) | def caplog_for_logger(caplog: pytest.LogCaptureFixture, logger_name: str... function app (line 42) | async def app(scope: Scope, receive: ASGIReceiveCallable, send: ASGISend... function test_trace_logging (line 48) | async def test_trace_logging(caplog: pytest.LogCaptureFixture, logging_c... function test_trace_logging_on_http_protocol (line 70) | async def test_trace_logging_on_http_protocol(http_protocol_cls, caplog,... function test_trace_logging_on_ws_protocol (line 88) | async def test_trace_logging_on_ws_protocol( function test_access_logging (line 125) | async def test_access_logging( function test_default_logging (line 140) | async def test_default_logging( function test_running_log_using_uds (line 160) | async def test_running_log_using_uds( function test_running_log_using_fd (line 173) | async def test_running_log_using_fd(caplog: pytest.LogCaptureFixture, un... function test_unknown_status_code (line 185) | async def test_unknown_status_code(caplog: pytest.LogCaptureFixture, unu... function test_server_start_with_port_zero (line 202) | async def test_server_start_with_port_zero(caplog: pytest.LogCaptureFixt... FILE: tests/middleware/test_message_logger.py function test_message_logger (line 11) | async def test_message_logger(caplog: pytest.LogCaptureFixture) -> None: function test_message_logger_exc (line 34) | async def test_message_logger_exc(caplog: pytest.LogCaptureFixture) -> N... FILE: tests/middleware/test_proxy_headers.py function default_app (line 27) | async def default_app(scope: Scope, receive: ASGIReceiveCallable, send: ... function make_httpx_client (line 39) | def make_httpx_client( function test_forwarded_hosts (line 339) | def test_forwarded_hosts(init_hosts: str | list[str], test_host: str, ex... function test_proxy_headers_trusted_hosts (line 368) | async def test_proxy_headers_trusted_hosts(trusted_hosts: str | list[str... function test_proxy_headers_trusted_hosts_malformed (line 391) | async def test_proxy_headers_trusted_hosts_malformed( function test_proxy_headers_multiple_proxies (line 421) | async def test_proxy_headers_multiple_proxies(trusted_hosts: str | list[... function test_proxy_headers_invalid_x_forwarded_for (line 430) | async def test_proxy_headers_invalid_x_forwarded_for() -> None: function test_proxy_headers_websocket_x_forwarded_proto (line 454) | async def test_proxy_headers_websocket_x_forwarded_proto( function test_proxy_headers_empty_x_forwarded_for (line 488) | async def test_proxy_headers_empty_x_forwarded_for() -> None: FILE: tests/middleware/test_wsgi.py function hello_world (line 15) | def hello_world(environ: Environ, start_response: StartResponse) -> list... function echo_body (line 26) | def echo_body(environ: Environ, start_response: StartResponse) -> list[b... function raise_exception (line 37) | def raise_exception(environ: Environ, start_response: StartResponse) -> ... function return_exc_info (line 41) | def return_exc_info(environ: Environ, start_response: StartResponse) -> ... function wsgi_middleware (line 56) | def wsgi_middleware(request: pytest.FixtureRequest) -> Callable: function test_wsgi_get (line 61) | async def test_wsgi_get(wsgi_middleware: Callable) -> None: function test_wsgi_post (line 70) | async def test_wsgi_post(wsgi_middleware: Callable) -> None: function test_wsgi_put_more_body (line 79) | async def test_wsgi_put_more_body(wsgi_middleware: Callable) -> None: function test_wsgi_exception (line 92) | async def test_wsgi_exception(wsgi_middleware: Callable) -> None: function test_wsgi_exc_info (line 102) | async def test_wsgi_exc_info(wsgi_middleware: Callable) -> None: function test_build_environ_encoding (line 114) | def test_build_environ_encoding() -> None: FILE: tests/protocols/test_http.py class MockTransport (line 170) | class MockTransport: method __init__ (line 171) | def __init__( method get_extra_info (line 181) | def get_extra_info(self, key: Any): method write (line 184) | def write(self, data: bytes): method close (line 188) | def close(self): method pause_reading (line 192) | def pause_reading(self): method resume_reading (line 195) | def resume_reading(self): method is_closing (line 198) | def is_closing(self): method clear_buffer (line 201) | def clear_buffer(self): method set_protocol (line 204) | def set_protocol(self, protocol: asyncio.Protocol): class MockTimerHandle (line 208) | class MockTimerHandle: method __init__ (line 209) | def __init__( method cancel (line 218) | def cancel(self): class MockLoop (line 224) | class MockLoop: method __init__ (line 225) | def __init__(self): method create_task (line 229) | def create_task(self, coroutine: Any) -> Any: method call_later (line 233) | def call_later(self, delay: float, callback: Callable[[], None], *args... method run_one (line 238) | async def run_one(self): method run_later (line 241) | def run_later(self, with_delay: float) -> None: class MockTask (line 251) | class MockTask: method add_done_callback (line 252) | def add_done_callback(self, callback: Callable[[], None]): class MockProtocol (line 256) | class MockProtocol(asyncio.Protocol): function get_connected_protocol (line 264) | def get_connected_protocol( function test_get_request (line 280) | async def test_get_request(http_protocol_cls: type[HTTPProtocol]): function test_header_value_allowed_characters (line 299) | async def test_header_value_allowed_characters(http_protocol_cls: type[H... function test_invalid_header_name (line 333) | async def test_invalid_header_name(http_protocol_cls: type[HTTPProtocol]... function test_request_logging (line 346) | async def test_request_logging(path: str, http_protocol_cls: type[HTTPPr... function test_head_request (line 361) | async def test_head_request(http_protocol_cls: type[HTTPProtocol]): function test_post_request (line 371) | async def test_post_request(http_protocol_cls: type[HTTPProtocol]): function test_keepalive (line 390) | async def test_keepalive(http_protocol_cls: type[HTTPProtocol]): function test_keepalive_timeout (line 401) | async def test_keepalive_timeout(http_protocol_cls: type[HTTPProtocol]): function test_keepalive_timeout_with_pipelined_requests (line 415) | async def test_keepalive_timeout_with_pipelined_requests(http_protocol_c... function test_close (line 438) | async def test_close(http_protocol_cls: type[HTTPProtocol]): function test_chunked_encoding (line 448) | async def test_chunked_encoding(http_protocol_cls: type[HTTPProtocol]): function test_chunked_encoding_empty_body (line 459) | async def test_chunked_encoding_empty_body(http_protocol_cls: type[HTTPP... function test_chunked_encoding_head_request (line 470) | async def test_chunked_encoding_head_request(http_protocol_cls: type[HTT... function test_pipelined_requests (line 480) | async def test_pipelined_requests(http_protocol_cls: type[HTTPProtocol]): function test_undersized_request (line 501) | async def test_undersized_request(http_protocol_cls: type[HTTPProtocol]): function test_oversized_request (line 510) | async def test_oversized_request(http_protocol_cls: type[HTTPProtocol]): function test_large_post_request (line 519) | async def test_large_post_request(http_protocol_cls: type[HTTPProtocol]): function test_invalid_http (line 529) | async def test_invalid_http(http_protocol_cls: type[HTTPProtocol]): function test_app_exception (line 537) | async def test_app_exception(http_protocol_cls: type[HTTPProtocol]): function test_exception_during_response (line 548) | async def test_exception_during_response(http_protocol_cls: type[HTTPPro... function test_no_response_returned (line 561) | async def test_no_response_returned(http_protocol_cls: type[HTTPProtocol]): function test_partial_response_returned (line 571) | async def test_partial_response_returned(http_protocol_cls: type[HTTPPro... function test_response_header_splitting (line 582) | async def test_response_header_splitting(http_protocol_cls: type[HTTPPro... function test_duplicate_start_message (line 593) | async def test_duplicate_start_message(http_protocol_cls: type[HTTPProto... function test_missing_start_message (line 605) | async def test_missing_start_message(http_protocol_cls: type[HTTPProtoco... function test_message_after_body_complete (line 616) | async def test_message_after_body_complete(http_protocol_cls: type[HTTPP... function test_value_returned (line 629) | async def test_value_returned(http_protocol_cls: type[HTTPProtocol]): function test_early_disconnect (line 642) | async def test_early_disconnect(http_protocol_cls: type[HTTPProtocol]): function test_early_response (line 663) | async def test_early_response(http_protocol_cls: type[HTTPProtocol]): function test_read_after_response (line 674) | async def test_read_after_response(http_protocol_cls: type[HTTPProtocol]): function test_http10_request (line 691) | async def test_http10_request(http_protocol_cls: type[HTTPProtocol]): function test_root_path (line 705) | async def test_root_path(http_protocol_cls: type[HTTPProtocol]): function test_raw_path (line 720) | async def test_raw_path(http_protocol_cls: type[HTTPProtocol]): function test_max_concurrency (line 737) | async def test_max_concurrency(http_protocol_cls: type[HTTPProtocol]): function test_shutdown_during_request (line 758) | async def test_shutdown_during_request(http_protocol_cls: type[HTTPProto... function test_shutdown_during_idle (line 769) | async def test_shutdown_during_idle(http_protocol_cls: type[HTTPProtocol]): function test_100_continue_sent_when_body_consumed (line 778) | async def test_100_continue_sent_when_body_consumed(http_protocol_cls: t... function test_100_continue_not_sent_when_body_not_consumed (line 809) | async def test_100_continue_not_sent_when_body_not_consumed( function test_supported_upgrade_request (line 832) | async def test_supported_upgrade_request(http_protocol_cls: type[HTTPPro... function test_unsupported_ws_upgrade_request (line 842) | async def test_unsupported_ws_upgrade_request(http_protocol_cls: type[HT... function test_unsupported_ws_upgrade_request_warn_on_auto (line 852) | async def test_unsupported_ws_upgrade_request_warn_on_auto( function test_http2_upgrade_request (line 869) | async def test_http2_upgrade_request(http_protocol_cls: type[HTTPProtoco... function asgi3app (line 879) | async def asgi3app(scope: Scope, receive: ASGIReceiveCallable, send: ASG... function asgi2app (line 883) | def asgi2app(scope: Scope): function test_scopes (line 897) | async def test_scopes( function test_invalid_http_request (line 916) | async def test_invalid_http_request( function test_fragmentation (line 932) | def test_fragmentation(unused_tcp_port: int): function test_huge_headers_h11protocol_failure (line 977) | async def test_huge_headers_h11protocol_failure(): function test_huge_headers_httptools_will_pass (line 990) | async def test_huge_headers_httptools_will_pass(): function test_huge_headers_h11protocol_failure_with_setting (line 1003) | async def test_huge_headers_h11protocol_failure_with_setting(): function test_huge_headers_httptools (line 1016) | async def test_huge_headers_httptools(): function test_huge_headers_h11_max_incomplete (line 1029) | async def test_huge_headers_h11_max_incomplete(): function test_return_close_header (line 1040) | async def test_return_close_header(http_protocol_cls: type[HTTPProtocol]): function test_close_connection_with_multiple_requests (line 1054) | async def test_close_connection_with_multiple_requests(http_protocol_cls... function test_close_connection_with_post_request (line 1068) | async def test_close_connection_with_post_request(http_protocol_cls: typ... function test_iterator_headers (line 1087) | async def test_iterator_headers(http_protocol_cls: type[HTTPProtocol]): function test_lifespan_state (line 1099) | async def test_lifespan_state(http_protocol_cls: type[HTTPProtocol]): function test_header_upgrade_is_not_websocket_depend_installed (line 1127) | async def test_header_upgrade_is_not_websocket_depend_installed( function test_header_upgrade_is_websocket_depend_not_installed (line 1143) | async def test_header_upgrade_is_websocket_depend_not_installed( FILE: tests/protocols/test_utils.py class MockSocket (line 12) | class MockSocket: method __init__ (line 13) | def __init__( method getpeername (line 23) | def getpeername(self): method getsockname (line 26) | def getsockname(self): class MockTransport (line 30) | class MockTransport(Transport): method __init__ (line 31) | def __init__(self, info: dict[str, Any]) -> None: method get_extra_info (line 34) | def get_extra_info(self, name: str, default: Any = None) -> Any: function test_get_local_addr_with_socket (line 38) | def test_get_local_addr_with_socket(): function test_get_remote_addr_with_socket (line 52) | def test_get_remote_addr_with_socket(): function test_get_local_addr (line 67) | def test_get_local_addr(): function test_get_remote_addr (line 78) | def test_get_remote_addr(): function test_get_client_addr (line 91) | def test_get_client_addr(scope: Any, expected_client: str): FILE: tests/protocols/test_websocket.py class WebSocketResponse (line 49) | class WebSocketResponse: method __init__ (line 50) | def __init__(self, scope: Scope, receive: ASGIReceiveCallable, send: A... method __await__ (line 55) | def __await__(self): method asgi (line 58) | async def asgi(self): function wsresponse (line 69) | async def wsresponse(url: str): function test_invalid_upgrade (line 84) | async def test_invalid_upgrade(ws_protocol_cls: WSProtocol, http_protoco... function test_accept_connection (line 114) | async def test_accept_connection(ws_protocol_cls: WSProtocol, http_proto... function test_shutdown (line 129) | async def test_shutdown(ws_protocol_cls: WSProtocol, http_protocol_cls: ... function test_supports_permessage_deflate_extension (line 141) | async def test_supports_permessage_deflate_extension( function test_can_disable_permessage_deflate_extension (line 159) | async def test_can_disable_permessage_deflate_extension( function test_close_connection (line 186) | async def test_close_connection(ws_protocol_cls: WSProtocol, http_protoc... function test_headers (line 204) | async def test_headers(ws_protocol_cls: WSProtocol, http_protocol_cls: H... function test_extra_headers (line 223) | async def test_extra_headers(ws_protocol_cls: WSProtocol, http_protocol_... function test_path_and_raw_path (line 238) | async def test_path_and_raw_path(ws_protocol_cls: WSProtocol, http_proto... function test_send_text_data_to_client (line 257) | async def test_send_text_data_to_client( function test_send_binary_data_to_client (line 275) | async def test_send_binary_data_to_client( function test_send_and_close_connection (line 293) | async def test_send_and_close_connection( function test_send_text_data_to_server (line 319) | async def test_send_text_data_to_server( function test_send_binary_data_to_server (line 342) | async def test_send_binary_data_to_server( function test_send_after_protocol_close (line 365) | async def test_send_after_protocol_close( function test_missing_handshake (line 393) | async def test_missing_handshake(ws_protocol_cls: WSProtocol, http_proto... function test_send_before_handshake (line 407) | async def test_send_before_handshake( function test_duplicate_handshake (line 423) | async def test_duplicate_handshake(ws_protocol_cls: WSProtocol, http_pro... function test_asgi_return_value (line 436) | async def test_asgi_return_value(ws_protocol_cls: WSProtocol, http_proto... function test_close_transport_on_asgi_return (line 454) | async def test_close_transport_on_asgi_return( function test_app_close (line 477) | async def test_app_close( function test_client_close (line 513) | async def test_client_close(ws_protocol_cls: WSProtocol, http_protocol_c... function test_client_connection_lost (line 541) | async def test_client_connection_lost( function test_client_connection_lost_on_send (line 574) | async def test_client_connection_lost_on_send( function test_connection_lost_before_handshake_complete (line 601) | async def test_connection_lost_before_handshake_complete( function test_send_close_on_server_shutdown (line 637) | async def test_send_close_on_server_shutdown( function test_subprotocols (line 676) | async def test_subprotocols( function test_send_binary_data_to_server_bigger_than_default_on_websockets (line 717) | async def test_send_binary_data_to_server_bigger_than_default_on_websock... function test_server_reject_connection (line 753) | async def test_server_reject_connection( class EmptyDict (line 787) | class EmptyDict(TypedDict): ... function test_server_reject_connection_with_response (line 790) | async def test_server_reject_connection_with_response( function test_server_reject_connection_with_multibody_response (line 821) | async def test_server_reject_connection_with_multibody_response( function test_server_reject_connection_with_invalid_status (line 861) | async def test_server_reject_connection_with_invalid_status( function test_server_reject_connection_with_body_nolength (line 892) | async def test_server_reject_connection_with_body_nolength( function test_server_reject_connection_with_invalid_msg (line 924) | async def test_server_reject_connection_with_invalid_msg( function test_server_reject_connection_with_missing_body (line 958) | async def test_server_reject_connection_with_missing_body( function test_server_multiple_websocket_http_response_start_events (line 992) | async def test_server_multiple_websocket_http_response_start_events( function test_server_can_read_messages_in_buffer_after_close (line 1039) | async def test_server_can_read_messages_in_buffer_after_close( function test_default_server_headers (line 1073) | async def test_default_server_headers( function test_no_server_headers (line 1090) | async def test_no_server_headers(ws_protocol_cls: WSProtocol, http_proto... function test_no_date_header_on_wsproto (line 1113) | async def test_no_date_header_on_wsproto(http_protocol_cls: HTTPProtocol... function test_multiple_server_header (line 1135) | async def test_multiple_server_header( function test_lifespan_state (line 1160) | async def test_lifespan_state(ws_protocol_cls: WSProtocol, http_protocol... FILE: tests/response.py class Response (line 1) | class Response: method __init__ (line 4) | def __init__(self, content, status_code=200, headers=None, media_type=... method __call__ (line 12) | async def __call__(self, scope, receive, send) -> None: method render (line 23) | def render(self, content) -> bytes: method set_content_length (line 28) | def set_content_length(self): method set_content_type (line 32) | def set_content_type(self): FILE: tests/supervisors/test_multiprocess.py function new_console_in_windows (line 20) | def new_console_in_windows(test_function: Callable[[], Any]) -> Callable... function app (line 40) | async def app(scope: Scope, receive: ASGIReceiveCallable, send: ASGISend... function run (line 44) | def run(sockets: list[socket.socket] | None) -> None: function test_process_ping_pong (line 49) | def test_process_ping_pong() -> None: function test_process_ping_pong_timeout (line 55) | def test_process_ping_pong_timeout() -> None: function test_multiprocess_run (line 61) | def test_multiprocess_run() -> None: function test_multiprocess_health_check (line 76) | def test_multiprocess_health_check() -> None: function test_multiprocess_sigterm (line 96) | def test_multiprocess_sigterm() -> None: function test_multiprocess_sigbreak (line 110) | def test_multiprocess_sigbreak() -> None: # pragma: py-not-win32 function test_multiprocess_sighup (line 123) | def test_multiprocess_sighup() -> None: function test_multiprocess_sigttin (line 146) | def test_multiprocess_sigttin() -> None: function test_multiprocess_sigttou (line 161) | def test_multiprocess_sigttou() -> None: FILE: tests/supervisors/test_reload.py function run (line 29) | def run(sockets: list[socket.socket] | None) -> None: function sleep_touch (line 33) | def sleep_touch(*paths: Path): function touch_soon (line 40) | def touch_soon() -> Generator[Callable[[Path], None]]: class TestBaseReload (line 54) | class TestBaseReload: method setup (line 56) | def setup(self, reload_directory_structure: Path, reloader_class: type... method _setup_reloader (line 62) | def _setup_reloader(self, config: Config) -> BaseReload: method _reload_tester (line 71) | def _reload_tester( method test_reloader_should_initialize (line 85) | def test_reloader_should_initialize(self) -> None: method test_reload_when_python_file_is_changed (line 98) | def test_reload_when_python_file_is_changed(self, touch_soon: Callable... method test_should_reload_when_python_file_in_subdir_is_changed (line 111) | def test_should_reload_when_python_file_in_subdir_is_changed(self, tou... method test_should_not_reload_when_python_file_in_excluded_subdir_is_changed (line 123) | def test_should_not_reload_when_python_file_in_excluded_subdir_is_chan... method test_reload_when_pattern_matched_file_is_changed (line 142) | def test_reload_when_pattern_matched_file_is_changed( method test_should_not_reload_when_exclude_pattern_match_file_is_changed (line 156) | def test_should_not_reload_when_exclude_pattern_match_file_is_changed( method test_should_not_reload_when_dot_file_is_changed (line 179) | def test_should_not_reload_when_dot_file_is_changed(self, touch_soon: ... method test_should_reload_when_directories_have_same_prefix (line 191) | def test_should_reload_when_directories_have_same_prefix( method test_should_not_reload_when_only_subdirectory_is_watched (line 216) | def test_should_not_reload_when_only_subdirectory_is_watched( method test_override_defaults (line 236) | def test_override_defaults(self, touch_soon: Callable[[Path], None]) -... method test_explicit_paths (line 258) | def test_explicit_paths(self, touch_soon: Callable[[Path], None]) -> N... method test_watchfiles_no_changes (line 279) | def test_watchfiles_no_changes(self) -> None: function test_should_watch_cwd (line 308) | def test_should_watch_cwd(mocker: MockerFixture, reload_directory_struct... function test_should_watch_multiple_dirs (line 318) | def test_should_watch_multiple_dirs(mocker: MockerFixture, reload_direct... function test_display_path_relative (line 335) | def test_display_path_relative(tmp_path: Path): function test_display_path_non_relative (line 342) | def test_display_path_non_relative(): function test_base_reloader_run (line 347) | def test_base_reloader_run(tmp_path: Path): function test_base_reloader_should_exit (line 378) | def test_base_reloader_should_exit(tmp_path: Path): function test_base_reloader_closes_sockets_on_shutdown (line 394) | def test_base_reloader_closes_sockets_on_shutdown(): FILE: tests/supervisors/test_signal.py function test_sigint_finish_req (line 14) | async def test_sigint_finish_req(unused_tcp_port: int): function test_sigint_abort_req (line 47) | async def test_sigint_abort_req(unused_tcp_port: int, caplog): function test_sigint_deny_request_after_triggered (line 82) | async def test_sigint_deny_request_after_triggered(unused_tcp_port: int,... FILE: tests/test_auto_detection.py function app (line 32) | async def app(scope, receive, send): function test_loop_auto (line 36) | def test_loop_auto(): function test_http_auto (line 44) | async def test_http_auto(): function test_websocket_auto (line 52) | async def test_websocket_auto(): FILE: tests/test_cli.py function load_env_var (line 25) | def load_env_var(key: str, value: str) -> Iterator[None]: class App (line 33) | class App: function test_cli_print_version (line 37) | def test_cli_print_version() -> None: function test_cli_headers (line 53) | def test_cli_headers() -> None: function test_cli_call_server_run (line 70) | def test_cli_call_server_run() -> None: function test_cli_call_change_reload_run (line 80) | def test_cli_call_change_reload_run() -> None: function test_cli_call_multiprocess_run (line 92) | def test_cli_call_multiprocess_run() -> None: function uds_file (line 105) | def uds_file(tmp_path: Path, request: pytest.FixtureRequest) -> Path: #... function test_cli_uds (line 114) | def test_cli_uds(uds_file: Path) -> None: # pragma: py-win32 function test_cli_incomplete_app_parameter (line 128) | def test_cli_incomplete_app_parameter() -> None: function test_cli_event_size (line 139) | def test_cli_event_size() -> None: function test_env_variables (line 155) | def test_env_variables(http_protocol: str): function test_ignore_environment_variable_when_set_on_cli (line 164) | def test_ignore_environment_variable_when_set_on_cli(): function test_app_dir (line 173) | def test_app_dir(tmp_path: Path, caplog: pytest.LogCaptureFixture) -> None: function test_set_app_via_environment_variable (line 195) | def test_set_app_via_environment_variable(): FILE: tests/test_compat.py function assert_event_loop (line 13) | async def assert_event_loop(expected_loop_class: type[AbstractEventLoop]): function test_asyncio_run__default_loop_factory (line 17) | def test_asyncio_run__default_loop_factory() -> None: function test_asyncio_run__custom_loop_factory (line 21) | def test_asyncio_run__custom_loop_factory() -> None: function test_asyncio_run__passing_a_non_awaitable_callback_should_throw_error (line 25) | def test_asyncio_run__passing_a_non_awaitable_callback_should_throw_erro... FILE: tests/test_config.py function mocked_logging_config_module (line 30) | def mocked_logging_config_module(mocker: MockerFixture) -> MagicMock: function json_logging_config (line 35) | def json_logging_config(logging_config: dict) -> str: function yaml_logging_config (line 40) | def yaml_logging_config(logging_config: dict) -> str: function asgi_app (line 44) | async def asgi_app(scope: Scope, receive: ASGIReceiveCallable, send: ASG... function wsgi_app (line 48) | def wsgi_app(environ: Environ, start_response: StartResponse) -> None: function test_config_should_reload_is_set (line 56) | def test_config_should_reload_is_set(app: ASGIApplication, expected_shou... function test_should_warn_on_invalid_reload_configuration (line 62) | def test_should_warn_on_invalid_reload_configuration(tmp_path: Path, cap... function test_reload_dir_is_set (line 80) | def test_reload_dir_is_set(reload_directory_structure: Path, caplog: pyt... function test_non_existant_reload_dir_is_not_set (line 91) | def test_non_existant_reload_dir_is_not_set(reload_directory_structure: ... function test_reload_subdir_removal (line 102) | def test_reload_subdir_removal(reload_directory_structure: Path) -> None: function test_reload_included_dir_is_added_to_reload_dirs (line 112) | def test_reload_included_dir_is_added_to_reload_dirs( function test_reload_dir_subdirectories_are_removed (line 129) | def test_reload_dir_subdirectories_are_removed( function test_reload_excluded_subdirectories_are_removed (line 151) | def test_reload_excluded_subdirectories_are_removed( function test_reload_includes_exclude_dir_patterns_are_matched (line 168) | def test_reload_includes_exclude_dir_patterns_are_matched( function test_wsgi_app (line 191) | def test_wsgi_app() -> None: function test_proxy_headers (line 200) | def test_proxy_headers() -> None: function test_app_unimportable_module (line 208) | def test_app_unimportable_module() -> None: function test_app_unimportable_other (line 214) | def test_app_unimportable_other(caplog: pytest.LogCaptureFixture) -> None: function test_app_factory (line 227) | def test_app_factory(caplog: pytest.LogCaptureFixture) -> None: function test_concrete_http_class (line 251) | def test_concrete_http_class() -> None: function test_socket_bind (line 257) | def test_socket_bind() -> None: function test_ssl_config (line 265) | def test_ssl_config( function test_ssl_config_combined (line 279) | def test_ssl_config_combined(tls_certificate_key_and_chain_path: str) ->... function asgi2_app (line 289) | def asgi2_app(scope: Scope) -> Callable: function test_asgi_version (line 297) | def test_asgi_version(app: ASGIApplication, expected_interface: Literal[... function test_log_config_default (line 312) | def test_log_config_default( function test_log_config_json (line 331) | def test_log_config_json( function test_log_config_yaml (line 350) | def test_log_config_yaml( function test_log_config_file (line 370) | def test_log_config_file( function web_concurrency (line 384) | def web_concurrency(request: pytest.FixtureRequest) -> Iterator[int]: function forwarded_allow_ips (line 391) | def forwarded_allow_ips(request: pytest.FixtureRequest) -> Iterator[str]: function test_env_file (line 397) | def test_env_file( function test_config_access_log (line 426) | def test_config_access_log(access_log: bool, handlers: int) -> None: function test_config_log_level (line 435) | def test_config_log_level(log_level: int) -> None: function test_config_log_effective_level (line 447) | def test_config_log_effective_level(log_level: int, uvicorn_logger_level... function test_ws_max_size (line 465) | def test_ws_max_size() -> None: function test_ws_max_queue (line 471) | def test_ws_max_queue() -> None: function test_bind_unix_socket_works_with_reload_or_workers (line 486) | def test_bind_unix_socket_works_with_reload_or_workers( function test_bind_fd_works_with_reload_or_workers (line 507) | def test_bind_fd_works_with_reload_or_workers(reload: bool, workers: int... function test_config_use_subprocess (line 533) | def test_config_use_subprocess(reload: bool, workers: int, expected: bool): function test_warn_when_using_reload_and_workers (line 539) | def test_warn_when_using_reload_and_workers(caplog: pytest.LogCaptureFix... function test_get_loop_factory (line 552) | def test_get_loop_factory(loop_type: LoopFactoryType, expected_loop_fact... function test_custom_loop__importable_custom_loop_setup_function (line 564) | def test_custom_loop__importable_custom_loop_setup_function() -> None: function test_custom_loop__not_importable_custom_loop_setup_function (line 576) | def test_custom_loop__not_importable_custom_loop_setup_function(caplog: ... function test_setup_event_loop_is_removed (line 590) | def test_setup_event_loop_is_removed(caplog: pytest.LogCaptureFixture) -... FILE: tests/test_default_headers.py function app (line 13) | async def app(scope: Scope, receive: ASGIReceiveCallable, send: ASGISend... function test_default_default_headers (line 19) | async def test_default_default_headers(unused_tcp_port: int): function test_override_server_header (line 27) | async def test_override_server_header(unused_tcp_port: int): function test_disable_default_server_header (line 36) | async def test_disable_default_server_header(unused_tcp_port: int): function test_override_server_header_multiple_times (line 44) | async def test_override_server_header_multiple_times(unused_tcp_port: int): function test_add_additional_header (line 53) | async def test_add_additional_header(unused_tcp_port: int): function test_disable_default_date_header (line 64) | async def test_disable_default_date_header(unused_tcp_port: int): FILE: tests/test_lifespan.py function test_lifespan_on (line 10) | def test_lifespan_on(): function test_lifespan_off (line 43) | def test_lifespan_off(): function test_lifespan_auto (line 59) | def test_lifespan_auto(): function test_lifespan_auto_with_error (line 92) | def test_lifespan_auto_with_error(): function test_lifespan_on_with_error (line 110) | def test_lifespan_on_with_error(): function test_lifespan_with_failed_startup (line 131) | def test_lifespan_with_failed_startup(mode, raise_exception, caplog): function test_lifespan_scope_asgi3app (line 160) | def test_lifespan_scope_asgi3app(): function test_lifespan_scope_asgi2app (line 183) | def test_lifespan_scope_asgi2app(): function test_lifespan_with_failed_shutdown (line 210) | def test_lifespan_with_failed_shutdown(mode, raise_exception, caplog): function test_lifespan_state (line 244) | def test_lifespan_state(): FILE: tests/test_main.py function app (line 19) | async def app(scope: Scope, receive: ASGIReceiveCallable, send: ASGISend... function _has_ipv6 (line 25) | def _has_ipv6(host: str): function test_run (line 53) | async def test_run(host, url: str, unused_tcp_port: int): function test_run_multiprocess (line 61) | async def test_run_multiprocess(unused_tcp_port: int): function test_run_reload (line 69) | async def test_run_reload(unused_tcp_port: int): function test_run_invalid_app_config_combination (line 77) | def test_run_invalid_app_config_combination(caplog: pytest.LogCaptureFix... function test_run_startup_failure (line 88) | def test_run_startup_failure(caplog: pytest.LogCaptureFixture) -> None: function test_run_match_config_params (line 100) | def test_run_match_config_params() -> None: function test_exit_on_create_server_with_invalid_host (line 112) | async def test_exit_on_create_server_with_invalid_host() -> None: function test_deprecated_server_state_from_main (line 120) | def test_deprecated_server_state_from_main() -> None: FILE: tests/test_server.py function capture_signal_sync (line 31) | def capture_signal_sync(sig: signal.Signals) -> Generator[list[int], Non... function capture_signal_async (line 40) | def capture_signal_async(sig: signal.Signals) -> Generator[list[int], No... function dummy_app (line 49) | async def dummy_app(scope, receive, send): # pragma: py-win32 function app (line 53) | async def app(scope: Scope, receive: ASGIReceiveCallable, send: ASGISend... function test_server_interrupt (line 69) | async def test_server_interrupt( function test_shutdown_on_early_exit_during_startup (line 90) | async def test_shutdown_on_early_exit_during_startup(unused_tcp_port: int): function test_request_than_limit_max_requests_warn_log (line 125) | async def test_request_than_limit_max_requests_warn_log( function test_limit_max_requests_jitter (line 138) | async def test_limit_max_requests_jitter( function server (line 160) | async def server(*, app: ASGIApplication, port: int, http_protocol_cls: ... function test_no_contextvars_pollution_asyncio (line 189) | async def test_no_contextvars_pollution_asyncio( FILE: tests/test_ssl.py function app (line 8) | async def app(scope, receive, send): function test_run (line 15) | async def test_run( function test_run_chain (line 38) | async def test_run_chain( function test_run_chain_only (line 59) | async def test_run_chain_only(tls_ca_ssl_context, tls_certificate_key_an... function test_run_password (line 74) | async def test_run_password( FILE: tests/test_subprocess.py function server_run (line 11) | def server_run(sockets: list[socket.socket]): # pragma: no cover function app (line 15) | async def app(scope: Scope, receive: ASGIReceiveCallable, send: ASGISend... function test_get_subprocess (line 19) | def test_get_subprocess() -> None: function test_subprocess_started (line 31) | def test_subprocess_started() -> None: FILE: tests/utils.py function run_server (line 16) | async def run_server(config: Config, sockets: list[socket] | None = None... function assert_signal (line 29) | def assert_signal(sig: signal.Signals): function as_cwd (line 41) | def as_cwd(path: Path): function get_asyncio_default_loop_per_os (line 51) | def get_asyncio_default_loop_per_os() -> type[asyncio.AbstractEventLoop]: FILE: uvicorn/_compat.py function asyncio_run (line 21) | def asyncio_run( function asyncio_run (line 35) | def asyncio_run( function _cancel_all_tasks (line 71) | def _cancel_all_tasks(loop: asyncio.AbstractEventLoop) -> None: FILE: uvicorn/_subprocess.py function get_subprocess (line 21) | def get_subprocess( function subprocess_started (line 54) | def subprocess_started( FILE: uvicorn/_types.py class ASGIVersions (line 51) | class ASGIVersions(TypedDict): class HTTPScope (line 56) | class HTTPScope(TypedDict): class WebSocketScope (line 73) | class WebSocketScope(TypedDict): class LifespanScope (line 90) | class LifespanScope(TypedDict): class HTTPRequestEvent (line 100) | class HTTPRequestEvent(TypedDict): class HTTPResponseDebugEvent (line 106) | class HTTPResponseDebugEvent(TypedDict): class HTTPResponseStartEvent (line 111) | class HTTPResponseStartEvent(TypedDict): class HTTPResponseBodyEvent (line 118) | class HTTPResponseBodyEvent(TypedDict): class HTTPResponseTrailersEvent (line 124) | class HTTPResponseTrailersEvent(TypedDict): class HTTPServerPushEvent (line 130) | class HTTPServerPushEvent(TypedDict): class HTTPDisconnectEvent (line 136) | class HTTPDisconnectEvent(TypedDict): class WebSocketConnectEvent (line 140) | class WebSocketConnectEvent(TypedDict): class WebSocketAcceptEvent (line 144) | class WebSocketAcceptEvent(TypedDict): class _WebSocketReceiveEventBytes (line 150) | class _WebSocketReceiveEventBytes(TypedDict): class _WebSocketReceiveEventText (line 156) | class _WebSocketReceiveEventText(TypedDict): class _WebSocketSendEventBytes (line 165) | class _WebSocketSendEventBytes(TypedDict): class _WebSocketSendEventText (line 171) | class _WebSocketSendEventText(TypedDict): class WebSocketResponseStartEvent (line 180) | class WebSocketResponseStartEvent(TypedDict): class WebSocketResponseBodyEvent (line 186) | class WebSocketResponseBodyEvent(TypedDict): class WebSocketDisconnectEvent (line 192) | class WebSocketDisconnectEvent(TypedDict): class WebSocketCloseEvent (line 198) | class WebSocketCloseEvent(TypedDict): class LifespanStartupEvent (line 204) | class LifespanStartupEvent(TypedDict): class LifespanShutdownEvent (line 208) | class LifespanShutdownEvent(TypedDict): class LifespanStartupCompleteEvent (line 212) | class LifespanStartupCompleteEvent(TypedDict): class LifespanStartupFailedEvent (line 216) | class LifespanStartupFailedEvent(TypedDict): class LifespanShutdownCompleteEvent (line 221) | class LifespanShutdownCompleteEvent(TypedDict): class LifespanShutdownFailedEvent (line 225) | class LifespanShutdownFailedEvent(TypedDict): class ASGI2Protocol (line 266) | class ASGI2Protocol(Protocol): method __init__ (line 267) | def __init__(self, scope: Scope) -> None: ... # pragma: no cover method __call__ (line 269) | async def __call__(self, receive: ASGIReceiveCallable, send: ASGISendC... FILE: uvicorn/config.py function create_ssl_context (line 105) | def create_ssl_context( function is_dir (line 125) | def is_dir(path: Path) -> bool: function resolve_reload_patterns (line 134) | def resolve_reload_patterns(patterns_list: list[str], directories_list: ... function _normalize_dirs (line 170) | def _normalize_dirs(dirs: list[str] | str | None) -> list[str]: class Config (line 178) | class Config: method __init__ (line 179) | def __init__( method asgi_version (line 348) | def asgi_version(self) -> Literal["2.0", "3.0"]: method is_ssl (line 357) | def is_ssl(self) -> bool: method use_subprocess (line 361) | def use_subprocess(self) -> bool: method configure_logging (line 364) | def configure_logging(self) -> None: method load (line 402) | def load(self) -> None: method setup_event_loop (line 481) | def setup_event_loop(self) -> None: method get_loop_factory (line 488) | def get_loop_factory(self) -> Callable[[], asyncio.AbstractEventLoop] ... method bind_socket (line 501) | def bind_socket(self) -> socket.socket: method should_reload (line 550) | def should_reload(self) -> bool: FILE: uvicorn/importer.py class ImportFromStringError (line 5) | class ImportFromStringError(Exception): function import_from_string (line 9) | def import_from_string(import_str: Any) -> Any: FILE: uvicorn/lifespan/off.py class LifespanOff (line 8) | class LifespanOff: method __init__ (line 9) | def __init__(self, config: Config) -> None: method startup (line 13) | async def startup(self) -> None: method shutdown (line 16) | async def shutdown(self) -> None: FILE: uvicorn/lifespan/on.py class LifespanOn (line 31) | class LifespanOn: method __init__ (line 32) | def __init__(self, config: Config) -> None: method startup (line 47) | async def startup(self) -> None: method shutdown (line 64) | async def shutdown(self) -> None: method main (line 78) | async def main(self) -> None: method send (line 102) | async def send(self, message: LifespanSendMessage) -> None: method receive (line 136) | async def receive(self) -> LifespanReceiveMessage: FILE: uvicorn/logging.py class ColourizedFormatter (line 14) | class ColourizedFormatter(logging.Formatter): method __init__ (line 32) | def __init__( method color_level_name (line 45) | def color_level_name(self, level_name: str, level_no: int) -> str: method should_use_colors (line 52) | def should_use_colors(self) -> bool: method formatMessage (line 55) | def formatMessage(self, record: logging.LogRecord) -> str: class DefaultFormatter (line 68) | class DefaultFormatter(ColourizedFormatter): method should_use_colors (line 69) | def should_use_colors(self) -> bool: class AccessFormatter (line 73) | class AccessFormatter(ColourizedFormatter): method get_status_code (line 82) | def get_status_code(self, status_code: int) -> str: method formatMessage (line 97) | def formatMessage(self, record: logging.LogRecord) -> str: FILE: uvicorn/loops/asyncio.py function asyncio_loop_factory (line 8) | def asyncio_loop_factory(use_subprocess: bool = False) -> Callable[[], a... FILE: uvicorn/loops/auto.py function auto_loop_factory (line 7) | def auto_loop_factory(use_subprocess: bool = False) -> Callable[[], asyn... FILE: uvicorn/loops/uvloop.py function uvloop_loop_factory (line 9) | def uvloop_loop_factory(use_subprocess: bool = False) -> Callable[[], as... FILE: uvicorn/main.py function _metavar_from_type (line 39) | def _metavar_from_type(_type: Any) -> str: function print_version (line 48) | def print_version(ctx: click.Context, param: click.Parameter, value: boo... function main (line 382) | def main( function run (line 486) | def run( function __getattr__ (line 617) | def __getattr__(name: str) -> Any: FILE: uvicorn/middleware/asgi2.py class ASGI2Middleware (line 9) | class ASGI2Middleware: method __init__ (line 10) | def __init__(self, app: "ASGI2Application"): method __call__ (line 13) | async def __call__(self, scope: "Scope", receive: "ASGIReceiveCallable... FILE: uvicorn/middleware/message_logger.py function message_with_placeholders (line 22) | def message_with_placeholders(message: Any) -> Any: class MessageLoggerMiddleware (line 36) | class MessageLoggerMiddleware: method __init__ (line 37) | def __init__(self, app: "ASGI3Application"): method __call__ (line 47) | async def __call__( FILE: uvicorn/middleware/proxy_headers.py class ProxyHeadersMiddleware (line 8) | class ProxyHeadersMiddleware: method __init__ (line 23) | def __init__(self, app: ASGI3Application, trusted_hosts: list[str] | s... method __call__ (line 27) | async def __call__(self, scope: Scope, receive: ASGIReceiveCallable, s... function _parse_raw_hosts (line 63) | def _parse_raw_hosts(value: str) -> list[str]: class _TrustedHosts (line 67) | class _TrustedHosts: method __init__ (line 70) | def __init__(self, trusted_hosts: list[str] | str) -> None: method __contains__ (line 109) | def __contains__(self, host: str | None) -> bool: method get_trusted_client_host (line 125) | def get_trusted_client_host(self, x_forwarded_for: str) -> str: FILE: uvicorn/middleware/wsgi.py function build_environ (line 27) | def build_environ(scope: HTTPScope, message: ASGIReceiveEvent, body: io.... class _WSGIMiddleware (line 82) | class _WSGIMiddleware: method __init__ (line 83) | def __init__(self, app: WSGIApp, workers: int = 10): method __call__ (line 91) | async def __call__( class WSGIResponder (line 102) | class WSGIResponder: method __init__ (line 103) | def __init__( method __call__ (line 120) | async def __call__(self, receive: ASGIReceiveCallable, send: ASGISendC... method sender (line 146) | async def sender(self, send: ASGISendCallable) -> None: method start_response (line 157) | def start_response( method wsgi (line 177) | def wsgi(self, environ: Environ, start_response: StartResponse) -> None: FILE: uvicorn/protocols/http/flow_control.py class FlowControl (line 10) | class FlowControl: method __init__ (line 11) | def __init__(self, transport: asyncio.Transport) -> None: method drain (line 18) | async def drain(self) -> None: method pause_reading (line 21) | def pause_reading(self) -> None: method resume_reading (line 26) | def resume_reading(self) -> None: method pause_writing (line 31) | def pause_writing(self) -> None: method resume_writing (line 36) | def resume_writing(self) -> None: function service_unavailable (line 42) | async def service_unavailable(scope: Scope, receive: ASGIReceiveCallable... FILE: uvicorn/protocols/http/h11_impl.py function _get_status_phrase (line 30) | def _get_status_phrase(status_code: int) -> bytes: class H11Protocol (line 40) | class H11Protocol(asyncio.Protocol): method __init__ (line 41) | def __init__( method connection_made (line 90) | def connection_made( # type: ignore[override] method connection_lost (line 105) | def connection_lost(self, exc: Exception | None) -> None: method eof_received (line 130) | def eof_received(self) -> None: method _unset_keepalive_if_required (line 133) | def _unset_keepalive_if_required(self) -> None: method _get_upgrade (line 138) | def _get_upgrade(self) -> bytes | None: method _should_upgrade_to_ws (line 150) | def _should_upgrade_to_ws(self) -> bool: method _unsupported_upgrade_warning (line 155) | def _unsupported_upgrade_warning(self) -> None: method _should_upgrade (line 162) | def _should_upgrade(self) -> bool: method data_received (line 170) | def data_received(self, data: bytes) -> None: method handle_events (line 176) | def handle_events(self) -> None: method handle_websocket_upgrade (line 279) | def handle_websocket_upgrade(self, event: h11.Request) -> None: method send_400_response (line 298) | def send_400_response(self, msg: str) -> None: method on_response_complete (line 316) | def on_response_complete(self) -> None: method shutdown (line 335) | def shutdown(self) -> None: method pause_writing (line 346) | def pause_writing(self) -> None: method resume_writing (line 352) | def resume_writing(self) -> None: method timeout_keep_alive_handler (line 358) | def timeout_keep_alive_handler(self) -> None: class RequestResponseCycle (line 369) | class RequestResponseCycle: method __init__ (line 370) | def __init__( method run_asgi (line 408) | async def run_asgi(self, app: ASGI3Application) -> None: method send_500_response (line 436) | async def send_500_response(self) -> None: method send (line 454) | async def send(self, message: ASGISendEvent) -> None: method receive (line 528) | async def receive(self) -> ASGIReceiveEvent: FILE: uvicorn/protocols/http/httptools_impl.py function _get_status_line (line 34) | def _get_status_line(status_code: int) -> bytes: class HttpToolsProtocol (line 45) | class HttpToolsProtocol(asyncio.Protocol): method __init__ (line 46) | def __init__( method connection_made (line 100) | def connection_made( # type: ignore[override] method connection_lost (line 115) | def connection_lost(self, exc: Exception | None) -> None: method eof_received (line 134) | def eof_received(self) -> None: method _unset_keepalive_if_required (line 137) | def _unset_keepalive_if_required(self) -> None: method _get_upgrade (line 142) | def _get_upgrade(self) -> bytes | None: method _should_upgrade_to_ws (line 154) | def _should_upgrade_to_ws(self) -> bool: method _unsupported_upgrade_warning (line 159) | def _unsupported_upgrade_warning(self) -> None: method _should_upgrade (line 165) | def _should_upgrade(self) -> bool: method data_received (line 169) | def data_received(self, data: bytes) -> None: method handle_websocket_upgrade (line 185) | def handle_websocket_upgrade(self) -> None: method send_400_response (line 205) | def send_400_response(self, msg: str) -> None: method on_message_begin (line 221) | def on_message_begin(self) -> None: method on_url (line 238) | def on_url(self, url: bytes) -> None: method on_header (line 241) | def on_header(self, name: bytes, value: bytes) -> None: method on_headers_complete (line 247) | def on_headers_complete(self) -> None: method on_body (line 305) | def on_body(self, body: bytes) -> None: method on_message_complete (line 313) | def on_message_complete(self) -> None: method on_response_complete (line 319) | def on_response_complete(self) -> None: method shutdown (line 343) | def shutdown(self) -> None: method pause_writing (line 352) | def pause_writing(self) -> None: method resume_writing (line 358) | def resume_writing(self) -> None: method timeout_keep_alive_handler (line 364) | def timeout_keep_alive_handler(self) -> None: class RequestResponseCycle (line 373) | class RequestResponseCycle: method __init__ (line 374) | def __init__( method run_asgi (line 414) | async def run_asgi(self, app: ASGI3Application) -> None: method send_500_response (line 442) | async def send_500_response(self) -> None: method send (line 457) | async def send(self, message: ASGISendEvent) -> None: method receive (line 563) | async def receive(self) -> ASGIReceiveEvent: FILE: uvicorn/protocols/utils.py class ClientDisconnected (line 10) | class ClientDisconnected(OSError): ... function get_remote_addr (line 13) | def get_remote_addr(transport: asyncio.Transport) -> tuple[str, int] | N... function get_local_addr (line 30) | def get_local_addr(transport: asyncio.Transport) -> tuple[str, int | Non... function is_ssl (line 47) | def is_ssl(transport: asyncio.Transport) -> bool: function get_client_addr (line 51) | def get_client_addr(scope: WWWScope) -> str: function get_path_with_query_string (line 58) | def get_path_with_query_string(scope: WWWScope) -> str: FILE: uvicorn/protocols/websockets/websockets_impl.py class Server (line 46) | class Server: method register (line 49) | def register(self, ws: WebSocketServerProtocol) -> None: method unregister (line 52) | def unregister(self, ws: WebSocketServerProtocol) -> None: method is_serving (line 55) | def is_serving(self) -> bool: class WebSocketProtocol (line 59) | class WebSocketProtocol(WebSocketServerProtocol): method __init__ (line 63) | def __init__( method connection_made (line 120) | def connection_made( # type: ignore[override] method connection_lost (line 135) | def connection_lost(self, exc: Exception | None) -> None: method shutdown (line 148) | def shutdown(self) -> None: method on_task_complete (line 156) | def on_task_complete(self, task: asyncio.Task[None]) -> None: method process_request (line 159) | async def process_request(self, path: str, request_headers: Headers) -... method process_subprotocol (line 206) | def process_subprotocol( method send_500_response (line 215) | def send_500_response(self) -> None: method ws_handler (line 229) | async def ws_handler(self, protocol: WebSocketServerProtocol, path: st... method run_asgi (line 238) | async def run_asgi(self) -> None: method asgi_send (line 264) | async def asgi_send(self, message: ASGISendEvent) -> None: method asgi_receive (line 359) | async def asgi_receive(self) -> WebSocketDisconnectEvent | WebSocketCo... FILE: uvicorn/protocols/websockets/websockets_sansio_impl.py class WebSocketsSansIOProtocol (line 45) | class WebSocketsSansIOProtocol(asyncio.Protocol): method __init__ (line 46) | def __init__( method connection_made (line 103) | def connection_made(self, transport: BaseTransport) -> None: method connection_lost (line 116) | def connection_lost(self, exc: Exception | None) -> None: method eof_received (line 129) | def eof_received(self) -> None: method shutdown (line 132) | def shutdown(self) -> None: method data_received (line 142) | def data_received(self, data: bytes) -> None: method handle_events (line 149) | def handle_events(self) -> None: method handle_connect (line 171) | def handle_connect(self, event: Request) -> None: method handle_cont (line 210) | def handle_cont(self, event: Frame) -> None: # pragma: no cover method handle_text (line 215) | def handle_text(self, event: Frame) -> None: method handle_bytes (line 221) | def handle_bytes(self, event: Frame) -> None: method send_receive_event_to_app (line 227) | def send_receive_event_to_app(self) -> None: method handle_ping (line 242) | def handle_ping(self) -> None: method handle_close (line 246) | def handle_close(self, event: Frame) -> None: method handle_parser_exception (line 257) | def handle_parser_exception(self) -> None: # pragma: no cover method on_task_complete (line 268) | def on_task_complete(self, task: asyncio.Task[None]) -> None: method run_asgi (line 271) | async def run_asgi(self) -> None: method send_500_response (line 287) | def send_500_response(self) -> None: method send (line 295) | async def send(self, message: ASGISendEvent) -> None: method receive (line 412) | async def receive(self) -> ASGIReceiveEvent: FILE: uvicorn/protocols/websockets/wsproto_impl.py class WSProtocol (line 38) | class WSProtocol(asyncio.Protocol): method __init__ (line 39) | def __init__( method connection_made (line 87) | def connection_made( # type: ignore[override] method connection_lost (line 100) | def connection_lost(self, exc: Exception | None) -> None: method eof_received (line 113) | def eof_received(self) -> None: method data_received (line 116) | def data_received(self, data: bytes) -> None: method handle_events (line 126) | def handle_events(self) -> None: method pause_writing (line 139) | def pause_writing(self) -> None: method resume_writing (line 145) | def resume_writing(self) -> None: method shutdown (line 151) | def shutdown(self) -> None: method on_task_complete (line 160) | def on_task_complete(self, task: asyncio.Task[None]) -> None: method handle_connect (line 165) | def handle_connect(self, event: events.Request) -> None: method handle_text (line 193) | def handle_text(self, event: events.TextMessage) -> None: method handle_bytes (line 202) | def handle_bytes(self, event: events.BytesMessage) -> None: method handle_close (line 212) | def handle_close(self, event: events.CloseConnection) -> None: method handle_ping (line 218) | def handle_ping(self, event: events.Ping) -> None: method send_500_response (line 221) | def send_500_response(self) -> None: method run_asgi (line 233) | async def run_asgi(self) -> None: method send (line 249) | async def send(self, message: ASGISendEvent) -> None: method receive (line 370) | async def receive(self) -> WebSocketEvent: FILE: uvicorn/server.py class ServerState (line 44) | class ServerState: method __init__ (line 49) | def __init__(self) -> None: class Server (line 56) | class Server: method __init__ (line 57) | def __init__(self, config: Config) -> None: method limit_max_requests (line 69) | def limit_max_requests(self) -> int | None: method run (line 74) | def run(self, sockets: list[socket.socket] | None = None) -> None: method serve (line 77) | async def serve(self, sockets: list[socket.socket] | None = None) -> N... method _serve (line 81) | async def _serve(self, sockets: list[socket.socket] | None = None) -> ... method startup (line 104) | async def startup(self, sockets: list[socket.socket] | None = None) ->... method _log_started_message (line 197) | def _log_started_message(self, listeners: Sequence[socket.SocketType])... method main_loop (line 232) | async def main_loop(self) -> None: method on_tick (line 241) | async def on_tick(self, counter: int) -> bool: method shutdown (line 271) | async def shutdown(self, sockets: list[socket.socket] | None = None) -... method _wait_tasks_to_complete (line 303) | async def _wait_tasks_to_complete(self) -> None: method capture_signals (line 322) | def capture_signals(self) -> Generator[None, None, None]: method handle_exit (line 341) | def handle_exit(self, sig: int, frame: FrameType | None) -> None: FILE: uvicorn/supervisors/basereload.py class BaseReload (line 26) | class BaseReload: method __init__ (line 27) | def __init__( method signal_handler (line 41) | def signal_handler(self, sig: int, frame: FrameType | None) -> None: ... method run (line 50) | def run(self) -> None: method pause (line 63) | def pause(self) -> None: method __iter__ (line 67) | def __iter__(self) -> Iterator[list[Path] | None]: method __next__ (line 70) | def __next__(self) -> list[Path] | None: method startup (line 73) | def startup(self) -> None: method restart (line 87) | def restart(self) -> None: method shutdown (line 103) | def shutdown(self) -> None: method should_restart (line 117) | def should_restart(self) -> list[Path] | None: function _display_path (line 121) | def _display_path(path: Path) -> str: FILE: uvicorn/supervisors/multiprocess.py class Process (line 26) | class Process: method __init__ (line 27) | def __init__( method ping (line 38) | def ping(self, timeout: float = 5) -> bool: method pong (line 45) | def pong(self) -> None: method always_pong (line 49) | def always_pong(self) -> None: method target (line 53) | def target(self, sockets: list[socket] | None = None) -> Any: # pragm... method is_alive (line 66) | def is_alive(self, timeout: float = 5) -> bool: method start (line 72) | def start(self) -> None: method terminate (line 75) | def terminate(self) -> None: method kill (line 89) | def kill(self) -> None: method join (line 94) | def join(self) -> None: method pid (line 99) | def pid(self) -> int | None: class Multiprocess (line 103) | class Multiprocess: method __init__ (line 104) | def __init__( method init_processes (line 123) | def init_processes(self) -> None: method terminate_all (line 129) | def terminate_all(self) -> None: method join_all (line 133) | def join_all(self) -> None: method restart_all (line 137) | def restart_all(self) -> None: method run (line 145) | def run(self) -> None: method keep_subprocess_alive (line 163) | def keep_subprocess_alive(self) -> None: method handle_signals (line 182) | def handle_signals(self) -> None: method handle_int (line 192) | def handle_int(self) -> None: method handle_term (line 196) | def handle_term(self) -> None: method handle_break (line 200) | def handle_break(self) -> None: # pragma: py-not-win32 method handle_hup (line 204) | def handle_hup(self) -> None: # pragma: py-win32 method handle_ttin (line 208) | def handle_ttin(self) -> None: # pragma: py-win32 method handle_ttou (line 215) | def handle_ttou(self) -> None: # pragma: py-win32 FILE: uvicorn/supervisors/statreload.py class StatReload (line 14) | class StatReload(BaseReload): method __init__ (line 15) | def __init__( method should_restart (line 28) | def should_restart(self) -> list[Path] | None: method restart (line 45) | def restart(self) -> None: method iter_py_files (line 49) | def iter_py_files(self) -> Iterator[Path]: FILE: uvicorn/supervisors/watchfilesreload.py class FileFilter (line 13) | class FileFilter: method __init__ (line 14) | def __init__(self, config: Config): method __call__ (line 37) | def __call__(self, path: Path) -> bool: class WatchFilesReload (line 55) | class WatchFilesReload(BaseReload): method __init__ (line 56) | def __init__( method should_restart (line 79) | def should_restart(self) -> list[Path] | None: FILE: uvicorn/workers.py class UvicornWorker (line 24) | class UvicornWorker(Worker): method __init__ (line 32) | def __init__(self, *args: Any, **kwargs: Any) -> None: method init_signals (line 74) | def init_signals(self) -> None: method _install_sigquit_handler (line 85) | def _install_sigquit_handler(self) -> None: method _serve (line 95) | async def _serve(self) -> None: method run (line 103) | def run(self) -> None: method callback_notify (line 106) | async def callback_notify(self) -> None: class UvicornH11Worker (line 110) | class UvicornH11Worker(UvicornWorker):