MCPcopy Create free account

hub / github.com/Kludex/uvicorn / functions

Functions752 in github.com/Kludex/uvicorn

Functiontest_env_variables
(http_protocol: str)
tests/test_cli.py:155
Functiontest_exception_during_response
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:548
Functiontest_exit_on_create_server_with_invalid_host
()
tests/test_main.py:187
Methodtest_explicit_paths
(self, touch_soon: Callable[[Path], None])
tests/supervisors/test_reload.py:268
Functiontest_extra_headers
(ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int)
tests/protocols/test_websocket.py:223
Functiontest_file_filter_excluded_directory
A glob include inside an excluded directory is not watched. Pins the branch directly: the reload tests that exercise it through real file wat
tests/supervisors/test_reload.py:415
Functiontest_forwarded_hosts
(init_hosts: str | list[str], test_host: str, expected: bool)
tests/middleware/test_proxy_headers.py:343
Functiontest_fragmentation
(unused_tcp_port: int)
tests/protocols/test_http.py:932
Functiontest_fragmented_message_exceeding_max_size
Stream non-FIN fragments past `ws_max_size` - the server must close with 1009.
tests/protocols/test_websocket.py:750
Functiontest_fragmented_message_reassembly
Server reassembles a fragmented message and delivers it to the app intact.
tests/protocols/test_websocket.py:773
Functiontest_frame_after_close_handshake_is_ignored
A frame arriving after the close handshake, e.g. a pong the client sent while the server's close reply was in flight, must not crash the protocol
tests/protocols/test_websocket.py:1151
Functiontest_get_client_addr
(scope: Any, expected_client: str)
tests/protocols/test_utils.py:91
Functiontest_get_local_addr
()
tests/protocols/test_utils.py:67
Functiontest_get_local_addr_with_socket
()
tests/protocols/test_utils.py:38
Functiontest_get_loop_factory
(loop_type: LoopFactoryType, expected_loop_factory: Any)
tests/test_config.py:627
Functiontest_get_remote_addr
()
tests/protocols/test_utils.py:78
Functiontest_get_remote_addr_with_socket
()
tests/protocols/test_utils.py:52
Functiontest_get_request
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:280
Functiontest_get_subprocess
()
tests/test_subprocess.py:19
Functiontest_head_request
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:361
Functiontest_header_upgrade_is_not_websocket_depend_installed
( caplog: pytest.LogCaptureFixture, http_protocol_cls: type[HTTPProtocol] )
tests/protocols/test_http.py:1127
Functiontest_header_upgrade_is_websocket_depend_not_installed
( caplog: pytest.LogCaptureFixture, http_protocol_cls: type[HTTPProtocol] )
tests/protocols/test_http.py:1143
Functiontest_header_value_allowed_characters
(http_protocol_cls: type[HTTPProtocol], char: str)
tests/protocols/test_http.py:299
Functiontest_headers
(ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int)
tests/protocols/test_websocket.py:204
Functiontest_http10_request
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:691
Functiontest_http2_upgrade_request
(http_protocol_cls: type[HTTPProtocol], ws_protocol_cls: type[WSProtocol])
tests/protocols/test_http.py:869
Functiontest_http_auto
()
tests/test_auto_detection.py:44
Functiontest_huge_headers_h11_max_incomplete
()
tests/protocols/test_http.py:1029
Functiontest_huge_headers_h11protocol_failure
()
tests/protocols/test_http.py:977
Functiontest_huge_headers_h11protocol_failure_with_setting
()
tests/protocols/test_http.py:1003
Functiontest_huge_headers_httptools
()
tests/protocols/test_http.py:1016
Functiontest_huge_headers_httptools_will_pass
()
tests/protocols/test_http.py:990
Functiontest_ignore_environment_variable_when_set_on_cli
()
tests/test_cli.py:164
Functiontest_internal_import_error
()
tests/importer/test_importer.py:27
Functiontest_invalid_attr
()
tests/importer/test_importer.py:20
Functiontest_invalid_format
()
tests/importer/test_importer.py:6
Functiontest_invalid_header_name
(http_protocol_cls: type[HTTPProtocol], name: str)
tests/protocols/test_http.py:333
Functiontest_invalid_http
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:529
Functiontest_invalid_http_request
( request_line: str, http_protocol_cls: type[HTTPProtocol], caplog: pytest.LogCaptureFixture )
tests/protocols/test_http.py:916
Functiontest_invalid_module
()
tests/importer/test_importer.py:13
Functiontest_invalid_upgrade
(ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int)
tests/protocols/test_websocket.py:84
Functiontest_is_ssl_true_when_only_factory_set
()
tests/test_ssl.py:216
Functiontest_iterator_headers
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:1087
Functiontest_keepalive
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:390
Functiontest_keepalive_timeout
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:401
Functiontest_keepalive_timeout_with_pipelined_requests
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:415
Functiontest_large_post_request
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:519
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:1099
Functiontest_lifespan_state
(ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int)
tests/protocols/test_websocket.py:1266
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_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:312
Functiontest_log_config_file
Test that one can load a configparser config from disk.
tests/test_config.py:399
Functiontest_log_config_json
Test that one can load a json config from disk.
tests/test_config.py:331
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:378
Functiontest_log_config_yaml
Test that one can load a yaml config from disk.
tests/test_config.py:350
Functiontest_log_config_yaml_missing_pyyaml
Test that a helpful error is raised when PyYAML is not installed.
tests/test_config.py:369
Functiontest_loop_auto
()
tests/test_auto_detection.py:36
Functiontest_max_concurrency
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:737
Functiontest_message_after_body_complete
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:616
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:378
Functiontest_missing_start_message
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:605
Functiontest_multiple_server_header
( ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int )
tests/protocols/test_websocket.py:1240
Functiontest_multiprocess_health_check
Ensure that the health check works as expected.
tests/supervisors/test_multiprocess.py:89
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:174
Functiontest_multiprocess_restart_stops_when_shutting_down
()
tests/supervisors/test_multiprocess.py:199
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:140
Functiontest_multiprocess_sighup
Ensure that the SIGHUP signal is handled as expected.
tests/supervisors/test_multiprocess.py:153
Functiontest_multiprocess_sigterm
Ensure that the SIGTERM signal is handled as expected.
tests/supervisors/test_multiprocess.py:126
Functiontest_multiprocess_sigttin
Ensure that the SIGTTIN signal is handled as expected.
tests/supervisors/test_multiprocess.py:210
Functiontest_multiprocess_sigttou
Ensure that the SIGTTOU signal is handled as expected.
tests/supervisors/test_multiprocess.py:225
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:109
Functiontest_no_date_header_on_wsproto
(http_protocol_cls: HTTPProtocol, unused_tcp_port: int)
tests/protocols/test_websocket.py:1217
Functiontest_no_import_needed
()
tests/importer/test_importer.py:39
Functiontest_no_response_returned
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:561
Functiontest_no_server_headers
(ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int)
tests/protocols/test_websocket.py:1193
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[[Path], None])
tests/supervisors/test_reload.py:246
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:510
Functiontest_partial_response_returned
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:571
Functiontest_path_and_raw_path
(ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int)
tests/protocols/test_websocket.py:239
Functiontest_pipelined_requests
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:480
Functiontest_post_request
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:371
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
← previousnext →501–600 of 752, ranked by callers