Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Kludex/uvicorn
/ functions
Functions
959 in github.com/Kludex/uvicorn
⨍
Functions
959
◇
Types & classes
102
↳
Endpoints
2
Function
test_close
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:548
Function
test_close_connection
(ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int)
tests/protocols/test_websocket.py:221
Function
test_close_connection_with_multiple_requests
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:1231
Function
test_close_connection_with_post_request
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:1245
Function
test_close_gives_up_when_the_peer_never_replies
Test that a peer that never echoes the close frame cannot keep the connection. RFC 6455 7.1.1 lets the server close the connection once the reply
tests/protocols/test_websocket.py:1783
Function
test_close_resumes_reads_paused_on_an_unconsumed_message
Test that closing resumes paused reads, so the peer close frame can be received.
tests/protocols/test_websocket.py:1710
Function
test_close_transport_on_asgi_return
The ASGI callable should call the `websocket.close` event. If it doesn't, the server should still send a close frame to the client.
tests/protocols/test_websocket.py:475
Function
test_close_waits_for_the_peer_close_frame
Test that a server close leaves the transport open until the peer echoes it. Closing it right away makes the peer's reply (RFC 6455 5.5.1) land o
tests/protocols/test_websocket.py:1694
Function
test_concrete_http_class
()
tests/test_config.py:262
Function
test_config_access_log
(access_log: bool, handlers: int)
tests/test_config.py:481
Function
test_config_http2_loads_negotiator
()
tests/protocols/test_http2.py:1162
Function
test_config_http_protocol_offers_alpn_protocols
( http: str | type[asyncio.Protocol], http2: bool, tls_ca_certificate_pem_path: str, tls_ca_ce
tests/protocols/test_http2.py:1177
Function
test_config_http_zttp_loads_http1_protocol
()
tests/protocols/test_http2.py:1156
Function
test_config_log_effective_level
(log_level: int, uvicorn_logger_level: int)
tests/test_config.py:502
Function
test_config_log_level
(log_level: int)
tests/test_config.py:490
Function
test_config_log_level_case_insensitive
(log_level: str)
tests/test_config.py:521
Function
test_config_should_reload_is_set
(app: ASGIApplication, expected_should_reload: bool)
tests/test_config.py:56
Function
test_config_use_subprocess
(reload: bool, workers: int, expected: bool)
tests/test_config.py:634
Function
test_connection_close_tokens
( http_protocol_cls: type[HTTPProtocol], http_version: bytes, request_connection: bytes, respo
tests/protocols/test_http.py:1191
Function
test_connection_lost_before_handshake_complete
( ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int )
tests/protocols/test_websocket.py:622
Function
test_connection_lost_cancels_the_pending_close_timer
Test that losing the connection stops waiting for the peer close frame.
tests/protocols/test_websocket.py:1799
Function
test_connection_lost_disconnects_the_app
()
tests/protocols/test_http2.py:696
Function
test_connection_lost_unblocks_paused_send
Test that connection loss releases a send blocked on backpressure.
tests/protocols/test_websocket.py:1868
Function
test_connection_specific_response_headers_are_stripped
()
tests/protocols/test_http2.py:606
Function
test_contextvars_preserved_by_default
By default, context set outside the ASGI task is visible inside it.
tests/test_server.py:206
Function
test_custom_loop__importable_custom_loop_setup_function
()
tests/test_config.py:665
Function
test_custom_loop__not_importable_custom_loop_setup_function
(caplog: pytest.LogCaptureFixture)
tests/test_config.py:677
Function
test_data_frame_and_peer_close_frame_in_one_read
Test that a peer close frame is processed even when preceded by data in the same read.
tests/protocols/test_websocket.py:1756
Function
test_data_frame_while_closing_does_not_pause_reads
Test that a data frame crossing the server close cannot block the peer close frame.
tests/protocols/test_websocket.py:1741
Function
test_default_default_headers
(unused_tcp_port: int)
tests/test_default_headers.py:19
Function
test_default_logging
( use_colors: bool, caplog: pytest.LogCaptureFixture, logging_config: dict[str, Any], unused_tcp_port: int
tests/middleware/test_logging.py:140
Function
test_default_server_headers
( ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int )
tests/protocols/test_websocket.py:1296
Function
test_default_ssl_context_factory_requires_ssl_certfile
Calling `default_ssl_context_factory()` without `ssl_certfile` raises a clear error.
tests/test_ssl.py:182
Function
test_deprecated_server_state_from_main
()
tests/test_main.py:195
Function
test_disable_default_date_header
(unused_tcp_port: int)
tests/test_default_headers.py:64
Function
test_disable_default_server_header
(unused_tcp_port: int)
tests/test_default_headers.py:36
Function
test_display_path_non_relative
()
tests/supervisors/test_reload.py:357
Function
test_display_path_relative
(tmp_path: Path)
tests/supervisors/test_reload.py:350
Function
test_duplicate_handshake
(ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int)
tests/protocols/test_websocket.py:444
Function
test_duplicate_start_message
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:713
Function
test_early_disconnect
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:762
Function
test_early_hints
()
tests/protocols/test_http2.py:398
Function
test_early_response
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:783
Function
test_early_response_ignores_late_request_frames
If the app responds before consuming the request body, frames the client keeps sending on that stream must be dropped, not crash.
tests/protocols/test_http2.py:858
Function
test_env_file
Test that one can load environment variables using an env file.
tests/test_config.py:452
Function
test_env_variables
(http_protocol: str)
tests/test_cli.py:186
Function
test_eof_received_is_a_no_op
()
tests/protocols/test_http2.py:1016
Function
test_exception_during_response
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:668
Function
test_exit_on_create_server_with_invalid_host
()
tests/test_main.py:187
Method
test_explicit_paths
(self, touch_soon: Callable[..., Event])
tests/supervisors/test_reload.py:273
Function
test_extra_headers
(ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int)
tests/protocols/test_websocket.py:265
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:420
Function
test_forwarded_allow_ips_default
(monkeypatch: pytest.MonkeyPatch)
tests/test_config.py:444
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:1059
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:792
Function
test_fragmented_message_reassembly
Server reassembles a fragmented message and delivers it to the app intact.
tests/protocols/test_websocket.py:815
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:1272
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:653
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:284
Function
test_get_request
()
tests/protocols/test_http2.py:237
Function
test_get_subprocess
()
tests/test_subprocess.py:19
Function
test_goaway_closes_idle_connection
()
tests/protocols/test_http2.py:810
Function
test_head_request
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:405
Function
test_head_request_has_no_body
()
tests/protocols/test_http2.py:471
Function
test_header_upgrade_is_not_websocket_depend_installed
( caplog: pytest.LogCaptureFixture, http_protocol_cls: type[HTTPProtocol] )
tests/protocols/test_http.py:1304
Function
test_header_upgrade_is_websocket_depend_not_installed
( caplog: pytest.LogCaptureFixture, http_protocol_cls: type[HTTPProtocol] )
tests/protocols/test_http.py:1320
Function
test_header_value_allowed_characters
(http_protocol_cls: type[HTTPProtocol], char: str)
tests/protocols/test_http.py:318
Function
test_header_value_strips_surrounding_whitespace
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:294
Function
test_headers
(ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int)
tests/protocols/test_websocket.py:239
Function
test_http10_request
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:816
Function
test_http1_request_selects_http1
()
tests/protocols/test_http2.py:1100
Function
test_http2_requires_zttp_protocol
()
tests/test_config.py:268
Function
test_http2_upgrade_request
(http_protocol_cls: type[HTTPProtocol], ws_protocol_cls: type[WSProtocol])
tests/protocols/test_http.py:994
Function
test_http_auto
()
tests/test_auto_detection.py:44
Function
test_httptools_http10_keep_alive_disabled
()
tests/protocols/test_http.py:1220
Function
test_huge_headers_h11_max_incomplete
()
tests/protocols/test_http.py:1156
Function
test_huge_headers_h11protocol_failure
()
tests/protocols/test_http.py:1104
Function
test_huge_headers_h11protocol_failure_with_setting
()
tests/protocols/test_http.py:1130
Function
test_huge_headers_httptools
()
tests/protocols/test_http.py:1143
Function
test_huge_headers_httptools_will_pass
()
tests/protocols/test_http.py:1117
Function
test_idle_frames_rearm_keep_alive_timer
()
tests/protocols/test_http2.py:731
Function
test_ignore_environment_variable_when_set_on_cli
()
tests/test_cli.py:195
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_frames_close_the_connection
(caplog: pytest.LogCaptureFixture)
tests/protocols/test_http2.py:823
Function
test_invalid_header_name
(http_protocol_cls: type[HTTPProtocol], name: str)
tests/protocols/test_http.py:352
Function
test_invalid_http
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:649
Function
test_invalid_http_request
( request_line: str, http_protocol_cls: type[HTTPProtocol], caplog: pytest.LogCaptureFixture )
tests/protocols/test_http.py:1043
Function
test_invalid_module
()
tests/importer/test_importer.py:13
Function
test_invalid_response_trailers
( message: ASGISendEvent | None, error: str, caplog: pytest.LogCaptureFixture, )
tests/protocols/test_http2.py:301
Function
test_invalid_upgrade
(ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int)
tests/protocols/test_websocket.py:89
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:1264
← previous
next →
601–700 of 959, ranked by callers