Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Kludex/uvicorn
/ functions
Functions
752 in github.com/Kludex/uvicorn
⨍
Functions
752
◇
Types & classes
84
↳
Endpoints
1
Function
test_env_variables
(http_protocol: str)
tests/test_cli.py:155
Function
test_exception_during_response
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:548
Function
test_exit_on_create_server_with_invalid_host
()
tests/test_main.py:187
Method
test_explicit_paths
(self, touch_soon: Callable[[Path], None])
tests/supervisors/test_reload.py:268
Function
test_extra_headers
(ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int)
tests/protocols/test_websocket.py:223
Function
test_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
Function
test_forwarded_hosts
(init_hosts: str | list[str], test_host: str, expected: bool)
tests/middleware/test_proxy_headers.py:343
Function
test_fragmentation
(unused_tcp_port: int)
tests/protocols/test_http.py:932
Function
test_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
Function
test_fragmented_message_reassembly
Server reassembles a fragmented message and delivers it to the app intact.
tests/protocols/test_websocket.py:773
Function
test_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
Function
test_get_client_addr
(scope: Any, expected_client: str)
tests/protocols/test_utils.py:91
Function
test_get_local_addr
()
tests/protocols/test_utils.py:67
Function
test_get_local_addr_with_socket
()
tests/protocols/test_utils.py:38
Function
test_get_loop_factory
(loop_type: LoopFactoryType, expected_loop_factory: Any)
tests/test_config.py:627
Function
test_get_remote_addr
()
tests/protocols/test_utils.py:78
Function
test_get_remote_addr_with_socket
()
tests/protocols/test_utils.py:52
Function
test_get_request
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:280
Function
test_get_subprocess
()
tests/test_subprocess.py:19
Function
test_head_request
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:361
Function
test_header_upgrade_is_not_websocket_depend_installed
( caplog: pytest.LogCaptureFixture, http_protocol_cls: type[HTTPProtocol] )
tests/protocols/test_http.py:1127
Function
test_header_upgrade_is_websocket_depend_not_installed
( caplog: pytest.LogCaptureFixture, http_protocol_cls: type[HTTPProtocol] )
tests/protocols/test_http.py:1143
Function
test_header_value_allowed_characters
(http_protocol_cls: type[HTTPProtocol], char: str)
tests/protocols/test_http.py:299
Function
test_headers
(ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int)
tests/protocols/test_websocket.py:204
Function
test_http10_request
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:691
Function
test_http2_upgrade_request
(http_protocol_cls: type[HTTPProtocol], ws_protocol_cls: type[WSProtocol])
tests/protocols/test_http.py:869
Function
test_http_auto
()
tests/test_auto_detection.py:44
Function
test_huge_headers_h11_max_incomplete
()
tests/protocols/test_http.py:1029
Function
test_huge_headers_h11protocol_failure
()
tests/protocols/test_http.py:977
Function
test_huge_headers_h11protocol_failure_with_setting
()
tests/protocols/test_http.py:1003
Function
test_huge_headers_httptools
()
tests/protocols/test_http.py:1016
Function
test_huge_headers_httptools_will_pass
()
tests/protocols/test_http.py:990
Function
test_ignore_environment_variable_when_set_on_cli
()
tests/test_cli.py:164
Function
test_internal_import_error
()
tests/importer/test_importer.py:27
Function
test_invalid_attr
()
tests/importer/test_importer.py:20
Function
test_invalid_format
()
tests/importer/test_importer.py:6
Function
test_invalid_header_name
(http_protocol_cls: type[HTTPProtocol], name: str)
tests/protocols/test_http.py:333
Function
test_invalid_http
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:529
Function
test_invalid_http_request
( request_line: str, http_protocol_cls: type[HTTPProtocol], caplog: pytest.LogCaptureFixture )
tests/protocols/test_http.py:916
Function
test_invalid_module
()
tests/importer/test_importer.py:13
Function
test_invalid_upgrade
(ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int)
tests/protocols/test_websocket.py:84
Function
test_is_ssl_true_when_only_factory_set
()
tests/test_ssl.py:216
Function
test_iterator_headers
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:1087
Function
test_keepalive
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:390
Function
test_keepalive_timeout
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:401
Function
test_keepalive_timeout_with_pipelined_requests
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:415
Function
test_large_post_request
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:519
Function
test_lifespan_auto
()
tests/test_lifespan.py:59
Function
test_lifespan_auto_with_error
()
tests/test_lifespan.py:92
Function
test_lifespan_off
()
tests/test_lifespan.py:43
Function
test_lifespan_on
()
tests/test_lifespan.py:10
Function
test_lifespan_on_with_error
()
tests/test_lifespan.py:110
Function
test_lifespan_scope_asgi2app
()
tests/test_lifespan.py:183
Function
test_lifespan_scope_asgi3app
()
tests/test_lifespan.py:160
Function
test_lifespan_state
()
tests/test_lifespan.py:244
Function
test_lifespan_state
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:1099
Function
test_lifespan_state
(ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int)
tests/protocols/test_websocket.py:1266
Function
test_lifespan_with_failed_shutdown
(mode, raise_exception, caplog)
tests/test_lifespan.py:210
Function
test_lifespan_with_failed_startup
(mode, raise_exception, caplog)
tests/test_lifespan.py:131
Function
test_limit_max_requests_jitter
( unused_tcp_port: int, http_protocol_cls: type[H11Protocol | HttpToolsProtocol], caplog: pytest.LogCaptur
tests/test_server.py:153
Function
test_log_config_default
Test that one can specify the use_colors option when using the default logging config.
tests/test_config.py:312
Function
test_log_config_file
Test that one can load a configparser config from disk.
tests/test_config.py:399
Function
test_log_config_json
Test that one can load a json config from disk.
tests/test_config.py:331
Function
test_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
Function
test_log_config_yaml
Test that one can load a yaml config from disk.
tests/test_config.py:350
Function
test_log_config_yaml_missing_pyyaml
Test that a helpful error is raised when PyYAML is not installed.
tests/test_config.py:369
Function
test_loop_auto
()
tests/test_auto_detection.py:36
Function
test_max_concurrency
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:737
Function
test_message_after_body_complete
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:616
Function
test_message_logger
(caplog: pytest.LogCaptureFixture)
tests/middleware/test_message_logger.py:11
Function
test_message_logger_exc
(caplog: pytest.LogCaptureFixture)
tests/middleware/test_message_logger.py:34
Function
test_missing_handshake
(ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int)
tests/protocols/test_websocket.py:378
Function
test_missing_start_message
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:605
Function
test_multiple_server_header
( ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int )
tests/protocols/test_websocket.py:1240
Function
test_multiprocess_health_check
Ensure that the health check works as expected.
tests/supervisors/test_multiprocess.py:89
Function
test_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
Function
test_multiprocess_restart_stops_when_shutting_down
()
tests/supervisors/test_multiprocess.py:199
Function
test_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
Function
test_multiprocess_sigbreak
Ensure that the SIGBREAK signal is handled as expected.
tests/supervisors/test_multiprocess.py:140
Function
test_multiprocess_sighup
Ensure that the SIGHUP signal is handled as expected.
tests/supervisors/test_multiprocess.py:153
Function
test_multiprocess_sigterm
Ensure that the SIGTERM signal is handled as expected.
tests/supervisors/test_multiprocess.py:126
Function
test_multiprocess_sigttin
Ensure that the SIGTTIN signal is handled as expected.
tests/supervisors/test_multiprocess.py:210
Function
test_multiprocess_sigttou
Ensure that the SIGTTOU signal is handled as expected.
tests/supervisors/test_multiprocess.py:225
Function
test_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
Function
test_no_date_header_on_wsproto
(http_protocol_cls: HTTPProtocol, unused_tcp_port: int)
tests/protocols/test_websocket.py:1217
Function
test_no_import_needed
()
tests/importer/test_importer.py:39
Function
test_no_response_returned
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:561
Function
test_no_server_headers
(ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int)
tests/protocols/test_websocket.py:1193
Function
test_non_existant_reload_dir_is_not_set
(reload_directory_structure: Path, caplog: pytest.LogCaptureFixture)
tests/test_config.py:91
Method
test_override_defaults
(self, touch_soon: Callable[[Path], None])
tests/supervisors/test_reload.py:246
Function
test_override_server_header
(unused_tcp_port: int)
tests/test_default_headers.py:27
Function
test_override_server_header_multiple_times
(unused_tcp_port: int)
tests/test_default_headers.py:44
Function
test_oversized_request
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:510
Function
test_partial_response_returned
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:571
Function
test_path_and_raw_path
(ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int)
tests/protocols/test_websocket.py:239
Function
test_pipelined_requests
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:480
Function
test_post_request
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:371
Function
test_process_ping_broken_pipe
()
tests/supervisors/test_multiprocess.py:54
Function
test_process_ping_pong
()
tests/supervisors/test_multiprocess.py:43
Function
test_process_ping_pong_timeout
()
tests/supervisors/test_multiprocess.py:49
← previous
next →
501–600 of 752, ranked by callers