Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Kludex/uvicorn
/ functions
Functions
820 in github.com/Kludex/uvicorn
⨍
Functions
820
◇
Types & classes
88
↳
Endpoints
1
Function
test_bench_ws_send_text
(ws_cls: WSProtocolClass)
tests/benchmarks/test_ws.py:61
Function
test_bind_fd_works_with_reload_or_workers
(reload: bool, workers: int)
tests/test_config.py:551
Function
test_bind_stdin_works_with_reload_or_workers
( reload: bool, workers: int, stdin_socket: socket.socket )
tests/test_config.py:586
Function
test_bind_unix_socket_works_with_reload_or_workers
( tmp_path: Path, reload: bool, workers: int, short_socket_name: str )
tests/test_config.py:530
Function
test_bodyless_response_with_transfer_encoding
RFC 9112 §6.1 forbids `Transfer-Encoding` on a 204, which zttp refuses to serialize.
tests/protocols/test_http.py:448
Function
test_build_environ_encoding
()
tests/middleware/test_wsgi.py:114
Function
test_can_disable_permessage_deflate_extension
( ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int )
tests/protocols/test_websocket.py:164
Function
test_chunked_encoding
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:458
Function
test_chunked_encoding_empty_body
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:469
Function
test_chunked_encoding_head_request
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:480
Function
test_circular_import_error
()
tests/importer/test_importer.py:46
Function
test_cli_call_change_reload_run
()
tests/test_cli.py:80
Function
test_cli_call_multiprocess_run
()
tests/test_cli.py:92
Function
test_cli_call_server_run
()
tests/test_cli.py:70
Function
test_cli_event_size
()
tests/test_cli.py:139
Function
test_cli_headers
()
tests/test_cli.py:53
Function
test_cli_incomplete_app_parameter
()
tests/test_cli.py:128
Function
test_cli_print_version
()
tests/test_cli.py:37
Function
test_cli_uds
(uds_file: Path)
tests/test_cli.py:114
Function
test_client_close
(ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int)
tests/protocols/test_websocket.py:504
Function
test_client_connection_lost
( ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int )
tests/protocols/test_websocket.py:532
Function
test_client_connection_lost_on_send
( ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int )
tests/protocols/test_websocket.py:565
Function
test_close
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:438
Function
test_close_connection
(ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int)
tests/protocols/test_websocket.py:191
Function
test_close_connection_with_multiple_requests
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:1069
Function
test_close_connection_with_post_request
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:1083
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:1727
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:1654
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:445
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:1638
Function
test_concrete_http_class
()
tests/test_config.py:251
Function
test_config_access_log
(access_log: bool, handlers: int)
tests/test_config.py:455
Function
test_config_log_effective_level
(log_level: int, uvicorn_logger_level: int)
tests/test_config.py:476
Function
test_config_log_level
(log_level: int)
tests/test_config.py:464
Function
test_config_log_level_case_insensitive
(log_level: str)
tests/test_config.py:495
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:608
Function
test_connection_lost_before_handshake_complete
( ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int )
tests/protocols/test_websocket.py:592
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:1743
Function
test_connection_lost_unblocks_paused_send
Test that connection loss releases a send blocked on backpressure.
tests/protocols/test_websocket.py:1791
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:639
Function
test_custom_loop__not_importable_custom_loop_setup_function
(caplog: pytest.LogCaptureFixture)
tests/test_config.py:651
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:1700
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:1685
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:1240
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:352
Function
test_display_path_relative
(tmp_path: Path)
tests/supervisors/test_reload.py:345
Function
test_duplicate_handshake
(ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int)
tests/protocols/test_websocket.py:414
Function
test_duplicate_start_message
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:603
Function
test_early_disconnect
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:652
Function
test_early_response
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:673
Function
test_env_file
Test that one can load environment variables using an env file.
tests/test_config.py:426
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:558
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:235
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:947
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:762
Function
test_fragmented_message_reassembly
Server reassembles a fragmented message and delivers it to the app intact.
tests/protocols/test_websocket.py:785
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:1216
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:1142
Function
test_header_upgrade_is_websocket_depend_not_installed
( caplog: pytest.LogCaptureFixture, http_protocol_cls: type[HTTPProtocol] )
tests/protocols/test_http.py:1158
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:209
Function
test_http10_request
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:706
Function
test_http2_upgrade_request
(http_protocol_cls: type[HTTPProtocol], ws_protocol_cls: type[WSProtocol])
tests/protocols/test_http.py:884
Function
test_http_auto
()
tests/test_auto_detection.py:44
Function
test_huge_headers_h11_max_incomplete
()
tests/protocols/test_http.py:1044
Function
test_huge_headers_h11protocol_failure
()
tests/protocols/test_http.py:992
Function
test_huge_headers_h11protocol_failure_with_setting
()
tests/protocols/test_http.py:1018
Function
test_huge_headers_httptools
()
tests/protocols/test_http.py:1031
Function
test_huge_headers_httptools_will_pass
()
tests/protocols/test_http.py:1005
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:539
Function
test_invalid_http_request
( request_line: str, http_protocol_cls: type[HTTPProtocol], caplog: pytest.LogCaptureFixture )
tests/protocols/test_http.py:931
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:89
← previous
next →
501–600 of 820, ranked by callers