MCPcopy Create free account

hub / github.com/Kludex/uvicorn / functions

Functions820 in github.com/Kludex/uvicorn

Functiontest_bench_ws_send_text
(ws_cls: WSProtocolClass)
tests/benchmarks/test_ws.py:61
Functiontest_bind_fd_works_with_reload_or_workers
(reload: bool, workers: int)
tests/test_config.py:551
Functiontest_bind_stdin_works_with_reload_or_workers
( reload: bool, workers: int, stdin_socket: socket.socket )
tests/test_config.py:586
Functiontest_bind_unix_socket_works_with_reload_or_workers
( tmp_path: Path, reload: bool, workers: int, short_socket_name: str )
tests/test_config.py:530
Functiontest_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
Functiontest_build_environ_encoding
()
tests/middleware/test_wsgi.py:114
Functiontest_can_disable_permessage_deflate_extension
( ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int )
tests/protocols/test_websocket.py:164
Functiontest_chunked_encoding
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:458
Functiontest_chunked_encoding_empty_body
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:469
Functiontest_chunked_encoding_head_request
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:480
Functiontest_circular_import_error
()
tests/importer/test_importer.py:46
Functiontest_cli_call_change_reload_run
()
tests/test_cli.py:80
Functiontest_cli_call_multiprocess_run
()
tests/test_cli.py:92
Functiontest_cli_call_server_run
()
tests/test_cli.py:70
Functiontest_cli_event_size
()
tests/test_cli.py:139
Functiontest_cli_headers
()
tests/test_cli.py:53
Functiontest_cli_incomplete_app_parameter
()
tests/test_cli.py:128
Functiontest_cli_print_version
()
tests/test_cli.py:37
Functiontest_cli_uds
(uds_file: Path)
tests/test_cli.py:114
Functiontest_client_close
(ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int)
tests/protocols/test_websocket.py:504
Functiontest_client_connection_lost
( ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int )
tests/protocols/test_websocket.py:532
Functiontest_client_connection_lost_on_send
( ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int )
tests/protocols/test_websocket.py:565
Functiontest_close
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:438
Functiontest_close_connection
(ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int)
tests/protocols/test_websocket.py:191
Functiontest_close_connection_with_multiple_requests
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:1069
Functiontest_close_connection_with_post_request
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:1083
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_concrete_http_class
()
tests/test_config.py:251
Functiontest_config_access_log
(access_log: bool, handlers: int)
tests/test_config.py:455
Functiontest_config_log_effective_level
(log_level: int, uvicorn_logger_level: int)
tests/test_config.py:476
Functiontest_config_log_level
(log_level: int)
tests/test_config.py:464
Functiontest_config_log_level_case_insensitive
(log_level: str)
tests/test_config.py:495
Functiontest_config_should_reload_is_set
(app: ASGIApplication, expected_should_reload: bool)
tests/test_config.py:56
Functiontest_config_use_subprocess
(reload: bool, workers: int, expected: bool)
tests/test_config.py:608
Functiontest_connection_lost_before_handshake_complete
( ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int )
tests/protocols/test_websocket.py:592
Functiontest_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
Functiontest_connection_lost_unblocks_paused_send
Test that connection loss releases a send blocked on backpressure.
tests/protocols/test_websocket.py:1791
Functiontest_contextvars_preserved_by_default
By default, context set outside the ASGI task is visible inside it.
tests/test_server.py:206
Functiontest_custom_loop__importable_custom_loop_setup_function
()
tests/test_config.py:639
Functiontest_custom_loop__not_importable_custom_loop_setup_function
(caplog: pytest.LogCaptureFixture)
tests/test_config.py:651
Functiontest_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
Functiontest_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
Functiontest_default_default_headers
(unused_tcp_port: int)
tests/test_default_headers.py:19
Functiontest_default_logging
( use_colors: bool, caplog: pytest.LogCaptureFixture, logging_config: dict[str, Any], unused_tcp_port: int
tests/middleware/test_logging.py:140
Functiontest_default_server_headers
( ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int )
tests/protocols/test_websocket.py:1240
Functiontest_default_ssl_context_factory_requires_ssl_certfile
Calling `default_ssl_context_factory()` without `ssl_certfile` raises a clear error.
tests/test_ssl.py:182
Functiontest_deprecated_server_state_from_main
()
tests/test_main.py:195
Functiontest_disable_default_date_header
(unused_tcp_port: int)
tests/test_default_headers.py:64
Functiontest_disable_default_server_header
(unused_tcp_port: int)
tests/test_default_headers.py:36
Functiontest_display_path_non_relative
()
tests/supervisors/test_reload.py:352
Functiontest_display_path_relative
(tmp_path: Path)
tests/supervisors/test_reload.py:345
Functiontest_duplicate_handshake
(ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int)
tests/protocols/test_websocket.py:414
Functiontest_duplicate_start_message
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:603
Functiontest_early_disconnect
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:652
Functiontest_early_response
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:673
Functiontest_env_file
Test that one can load environment variables using an env file.
tests/test_config.py:426
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:558
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:235
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:947
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:762
Functiontest_fragmented_message_reassembly
Server reassembles a fragmented message and delivers it to the app intact.
tests/protocols/test_websocket.py:785
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:1216
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:1142
Functiontest_header_upgrade_is_websocket_depend_not_installed
( caplog: pytest.LogCaptureFixture, http_protocol_cls: type[HTTPProtocol] )
tests/protocols/test_http.py:1158
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:209
Functiontest_http10_request
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:706
Functiontest_http2_upgrade_request
(http_protocol_cls: type[HTTPProtocol], ws_protocol_cls: type[WSProtocol])
tests/protocols/test_http.py:884
Functiontest_http_auto
()
tests/test_auto_detection.py:44
Functiontest_huge_headers_h11_max_incomplete
()
tests/protocols/test_http.py:1044
Functiontest_huge_headers_h11protocol_failure
()
tests/protocols/test_http.py:992
Functiontest_huge_headers_h11protocol_failure_with_setting
()
tests/protocols/test_http.py:1018
Functiontest_huge_headers_httptools
()
tests/protocols/test_http.py:1031
Functiontest_huge_headers_httptools_will_pass
()
tests/protocols/test_http.py:1005
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:539
Functiontest_invalid_http_request
( request_line: str, http_protocol_cls: type[HTTPProtocol], caplog: pytest.LogCaptureFixture )
tests/protocols/test_http.py:931
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:89
← previousnext →501–600 of 820, ranked by callers