MCPcopy Create free account

hub / github.com/Kludex/uvicorn / functions

Functions959 in github.com/Kludex/uvicorn

Functiontest_keep_alive_timeout_closes_idle_connection
()
tests/protocols/test_http2.py:715
Functiontest_keepalive
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:450
Functiontest_keepalive_timeout
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:461
Functiontest_keepalive_timeout_with_pipelined_requests
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:475
Functiontest_keepalive_timeout_with_pipelined_websocket_upgrade
( http_protocol_cls: type[HTTPProtocol], ws_protocol_cls: type[WSProtocol] )
tests/protocols/test_http.py:498
Functiontest_large_post_request
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:639
Functiontest_lifespan_auto
()
tests/test_lifespan.py:59
Functiontest_lifespan_auto_with_error
()
tests/test_lifespan.py:92
Functiontest_lifespan_off
()
tests/test_lifespan.py:43
Functiontest_lifespan_on
()
tests/test_lifespan.py:10
Functiontest_lifespan_on_with_error
()
tests/test_lifespan.py:110
Functiontest_lifespan_scope_asgi2app
()
tests/test_lifespan.py:183
Functiontest_lifespan_scope_asgi3app
()
tests/test_lifespan.py:160
Functiontest_lifespan_state
()
tests/test_lifespan.py:244
Functiontest_lifespan_state
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:1276
Functiontest_lifespan_state
(ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int)
tests/protocols/test_websocket.py:1387
Functiontest_lifespan_with_failed_shutdown
(mode, raise_exception, caplog)
tests/test_lifespan.py:210
Functiontest_lifespan_with_failed_startup
(mode, raise_exception, caplog)
tests/test_lifespan.py:131
Functiontest_limit_concurrency_returns_503
()
tests/protocols/test_http2.py:592
Functiontest_limit_max_requests_jitter
( unused_tcp_port: int, http_protocol_cls: type[H11Protocol | HttpToolsProtocol], caplog: pytest.LogCaptur
tests/test_server.py:153
Functiontest_log_config_default
Test that one can specify the use_colors option when using the default logging config.
tests/test_config.py:330
Functiontest_log_config_file
Test that one can load a configparser config from disk.
tests/test_config.py:417
Functiontest_log_config_json
Test that one can load a json config from disk.
tests/test_config.py:349
Functiontest_log_config_pathlike
Test that one can pass a `os.PathLike` (e.g. `pathlib.Path`) as the log config path.
tests/test_config.py:396
Functiontest_log_config_yaml
Test that one can load a yaml config from disk.
tests/test_config.py:368
Functiontest_log_config_yaml_missing_pyyaml
Test that a helpful error is raised when PyYAML is not installed.
tests/test_config.py:387
Functiontest_loop_auto
()
tests/test_auto_detection.py:36
Functiontest_max_concurrency
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:862
Functiontest_message_after_body_complete
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:736
Functiontest_message_logger
(caplog: pytest.LogCaptureFixture)
tests/middleware/test_message_logger.py:11
Functiontest_message_logger_exc
(caplog: pytest.LogCaptureFixture)
tests/middleware/test_message_logger.py:34
Functiontest_missing_handshake
(ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int)
tests/protocols/test_websocket.py:420
Functiontest_missing_start_message
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:725
Functiontest_multiple_server_header
( ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int )
tests/protocols/test_websocket.py:1361
Functiontest_multiplexed_requests
()
tests/protocols/test_http2.py:428
Functiontest_multiprocess_health_check
Ensure that the health check works as expected.
tests/supervisors/test_multiprocess.py:90
Functiontest_multiprocess_restart_aborts_when_replacement_not_ready
If a replacement never becomes ready, the existing worker is kept and the restart is aborted.
tests/supervisors/test_multiprocess.py:177
Functiontest_multiprocess_restart_stops_when_shutting_down
()
tests/supervisors/test_multiprocess.py:202
Functiontest_multiprocess_run
A basic sanity check. Simply run the supervisor against a no-op server, and signal for it to quit immediately.
tests/supervisors/test_multiprocess.py:74
Functiontest_multiprocess_sigbreak
Ensure that the SIGBREAK signal is handled as expected.
tests/supervisors/test_multiprocess.py:142
Functiontest_multiprocess_sighup
Ensure that the SIGHUP signal is handled as expected.
tests/supervisors/test_multiprocess.py:155
Functiontest_multiprocess_sigterm
Ensure that the SIGTERM signal is handled as expected.
tests/supervisors/test_multiprocess.py:128
Functiontest_multiprocess_sigttin
Ensure that the SIGTTIN signal is handled as expected.
tests/supervisors/test_multiprocess.py:213
Functiontest_multiprocess_sigttou
Ensure that the SIGTTOU signal is handled as expected.
tests/supervisors/test_multiprocess.py:233
Functiontest_multiprocess_worker_dies_on_startup
A worker that fails to load the app stops the parent instead of restarting forever. Regression for https://github.com/encode/uvicorn/discussions/
tests/supervisors/test_multiprocess.py:111
Functiontest_negotiator_shutdown_closes_connection
()
tests/protocols/test_http2.py:1133
Functiontest_negotiator_times_out_silent_connection
()
tests/protocols/test_http2.py:1124
Functiontest_no_date_header
(ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int)
tests/protocols/test_websocket.py:1338
Functiontest_no_import_needed
()
tests/importer/test_importer.py:39
Functiontest_no_response_returned
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:681
Functiontest_no_server_headers
(ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int)
tests/protocols/test_websocket.py:1315
Functiontest_non_ascii_target_resets_stream
(target: bytes)
tests/protocols/test_http2.py:538
Functiontest_non_existant_reload_dir_is_not_set
(reload_directory_structure: Path, caplog: pytest.LogCaptureFixture)
tests/test_config.py:91
Methodtest_override_defaults
(self, touch_soon: Callable[..., Event])
tests/supervisors/test_reload.py:251
Functiontest_override_server_header
(unused_tcp_port: int)
tests/test_default_headers.py:27
Functiontest_override_server_header_multiple_times
(unused_tcp_port: int)
tests/test_default_headers.py:44
Functiontest_oversized_request
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:630
Functiontest_partial_response_after_transport_close_is_dropped
()
tests/protocols/test_http2.py:577
Functiontest_partial_response_resets_stream
()
tests/protocols/test_http2.py:561
Functiontest_partial_response_returned
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:691
Functiontest_path_and_raw_path
(ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int)
tests/protocols/test_websocket.py:281
Functiontest_ping_while_closing
Test that a ping crossing the server close cannot break the closing handshake.
tests/protocols/test_websocket.py:1770
Functiontest_pipelined_requests
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:600
Functiontest_post_request
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:415
Functiontest_post_request
()
tests/protocols/test_http2.py:324
Functiontest_prior_knowledge_preface_selects_http2
()
tests/protocols/test_http2.py:1063
Functiontest_prior_knowledge_preface_split_across_packets
()
tests/protocols/test_http2.py:1080
Functiontest_process_ping_broken_pipe
()
tests/supervisors/test_multiprocess.py:54
Functiontest_process_ping_pong
()
tests/supervisors/test_multiprocess.py:43
Functiontest_process_ping_pong_timeout
()
tests/supervisors/test_multiprocess.py:49
Functiontest_process_ready
`is_ready()` reflects whether the worker's server has finished startup.
tests/supervisors/test_multiprocess.py:61
Functiontest_proxy_headers
()
tests/test_config.py:211
Functiontest_proxy_headers_duplicate_x_forwarded_for_is_combined
()
tests/middleware/test_proxy_headers.py:585
Functiontest_proxy_headers_duplicate_x_forwarded_proto_uses_last
( proto_headers: list[tuple[bytes, bytes]], expected: str, )
tests/middleware/test_proxy_headers.py:611
Functiontest_proxy_headers_empty_x_forwarded_for
()
tests/middleware/test_proxy_headers.py:549
Functiontest_proxy_headers_haproxy_behind_alb
()
tests/middleware/test_proxy_headers.py:628
Functiontest_proxy_headers_invalid_x_forwarded_for
()
tests/middleware/test_proxy_headers.py:459
Functiontest_proxy_headers_multiple_proxies
(trusted_hosts: str | list[str], expected: str)
tests/middleware/test_proxy_headers.py:425
Functiontest_proxy_headers_multiple_proxies_with_ports
(trusted_hosts: str | list[str], expected: str)
tests/middleware/test_proxy_headers.py:447
Functiontest_proxy_headers_trusted_hosts
(trusted_hosts: str | list[str], expected: str)
tests/middleware/test_proxy_headers.py:372
Functiontest_proxy_headers_trusted_hosts_malformed
( forwarded_for: str, forwarded_proto: str | None, expected: str, )
tests/middleware/test_proxy_headers.py:395
Functiontest_proxy_headers_websocket_x_forwarded_proto
( forwarded_proto: str, expected: str, ws_protocol_cls: type[WSProtocol | WebSocketsSansIOProtocol
tests/middleware/test_proxy_headers.py:515
Functiontest_proxy_headers_x_forwarded_for_port_shapes
(forwarded_for: str, expected: str)
tests/middleware/test_proxy_headers.py:497
Functiontest_raw_path
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:845
Functiontest_read_after_response
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:799
Functiontest_reload_dir_is_set
(reload_directory_structure: Path, caplog: pytest.LogCaptureFixture)
tests/test_config.py:80
Functiontest_reload_dir_subdirectories_are_removed
( reload_directory_structure: Path, )
tests/test_config.py:140
Functiontest_reload_excluded_subdirectories_are_removed
( reload_directory_structure: Path, )
tests/test_config.py:162
Functiontest_reload_included_dir_is_added_to_reload_dirs
( reload_directory_structure: Path, )
tests/test_config.py:123
Functiontest_reload_includes_exclude_dir_patterns_are_matched
( reload_directory_structure: Path, caplog: pytest.LogCaptureFixture )
tests/test_config.py:179
Functiontest_reload_nested_subdirs_removal
(tmp_path: Path)
tests/test_config.py:112
Functiontest_reload_subdir_removal
(reload_directory_structure: Path)
tests/test_config.py:102
Methodtest_reload_when_pattern_matched_file_is_changed
( self, result: bool, touch_soon: Callable[..., Event] )
tests/supervisors/test_reload.py:157
Methodtest_reload_when_python_file_is_changed
(self, touch_soon: Callable[..., Event])
tests/supervisors/test_reload.py:113
Methodtest_reloader_should_initialize
A basic sanity check. Simply run the reloader against a no-op server, and signal for it to quit immediately.
tests/supervisors/test_reload.py:100
Functiontest_request_ended_by_headers_frame
()
tests/protocols/test_http2.py:348
Functiontest_request_logging
(path: str, http_protocol_cls: type[HTTPProtocol], caplog: pytest.LogCaptureFixture)
tests/protocols/test_http.py:375
Functiontest_request_logging_escapes_quotes
(http_protocol_cls: type[HTTPProtocol], caplog: pytest.LogCaptureFixture)
tests/protocols/test_http.py:390
Functiontest_request_scope
()
tests/protocols/test_http2.py:369
Functiontest_request_than_limit_max_requests_warn_log
( unused_tcp_port: int, http_protocol_cls: type[H11Protocol | HttpToolsProtocol], caplog: pytest.LogCaptur
tests/test_server.py:140
← previousnext →701–800 of 959, ranked by callers