MCPcopy Create free account

hub / github.com/Kludex/uvicorn / functions

Functions777 in github.com/Kludex/uvicorn

Methodtest_should_not_reload_when_python_file_in_excluded_subdir_is_changed
(self, touch_soon: Callable[[Path], None])
tests/supervisors/test_reload.py:133
Methodtest_should_reload_when_directories_have_same_prefix
( self, touch_soon: Callable[[Path], None] )
tests/supervisors/test_reload.py:201
Methodtest_should_reload_when_python_file_in_subdir_is_changed
(self, touch_soon: Callable[[Path], None])
tests/supervisors/test_reload.py:121
Functiontest_should_warn_on_invalid_reload_configuration
(tmp_path: Path, caplog: pytest.LogCaptureFixture)
tests/test_config.py:62
Functiontest_should_watch_cwd
(mocker: MockerFixture, reload_directory_structure: Path)
tests/supervisors/test_reload.py:318
Functiontest_should_watch_multiple_dirs
(mocker: MockerFixture, reload_directory_structure: Path)
tests/supervisors/test_reload.py:328
Functiontest_shutdown
(ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int)
tests/protocols/test_websocket.py:130
Functiontest_shutdown_during_idle
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:774
Functiontest_shutdown_during_request
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:763
Functiontest_shutdown_on_early_exit_during_startup
Test that lifespan.shutdown is called even when should_exit is set during startup.
tests/test_server.py:90
Functiontest_shutdown_waits_for_app_task_to_complete
( ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int )
tests/protocols/test_websocket.py:1136
Functiontest_sigint_abort_req
1. Request is sent 2. Sigint is sent to uvicorn 3. Shutdown sequence start 4. Request is _NOT_ finished before timeout_graceful_shutd
tests/supervisors/test_signal.py:47
Functiontest_sigint_deny_request_after_triggered
1. Server is started 2. Shutdown sequence start 3. Request is sent, but not accepted Result: Request should fail, and not be able to
tests/supervisors/test_signal.py:86
Functiontest_sigint_finish_req
1. Request is sent 2. Sigint is sent to uvicorn 3. Shutdown sequence start 4. Request is finished before timeout_graceful_shutdown=1
tests/supervisors/test_signal.py:14
Functiontest_socket_bind
()
tests/test_config.py:257
Functiontest_ssl_ciphers_applied_when_set
( tls_certificate_server_cert_path: str, tls_certificate_private_key_path: str, )
tests/test_ssl.py:202
Functiontest_ssl_config
( tls_ca_certificate_pem_path: str, tls_ca_certificate_private_key_path: str, )
tests/test_config.py:265
Functiontest_ssl_config_combined
(tls_certificate_key_and_chain_path: str)
tests/test_config.py:279
Functiontest_ssl_context_factory_must_return_ssl_context
()
tests/test_ssl.py:193
Functiontest_ssl_context_factory_mutates_default
The factory can call the default and mutate the result (e.g., bump TLS minimum version).
tests/test_ssl.py:159
Functiontest_subprocess_started
()
tests/test_subprocess.py:31
Functiontest_subprotocols
( ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, subprotocol: str, unused_tcp_p
tests/protocols/test_websocket.py:663
Functiontest_supported_upgrade_request
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:837
Functiontest_supports_permessage_deflate_extension
( ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int )
tests/protocols/test_websocket.py:142
Functiontest_trace_logging
(caplog: pytest.LogCaptureFixture, logging_config: dict[str, Any], unused_tcp_port: int)
tests/middleware/test_logging.py:48
Functiontest_trace_logging_on_http_protocol
(http_protocol_cls, caplog, logging_config, unused_tcp_port: int)
tests/middleware/test_logging.py:70
Functiontest_trace_logging_on_ws_protocol
( ws_protocol_cls: WSProtocol, caplog: pytest.LogCaptureFixture, logging_config: dict[str, Any],
tests/middleware/test_logging.py:88
Functiontest_transfer_encoding_stripped_when_forbidden
RFC 9112 §6.1 forbids `Transfer-Encoding` on 1xx/204; zttp rejects it, so we drop it.
tests/protocols/test_zttp.py:14
Functiontest_undersized_request
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:501
Functiontest_unknown_status_code
(caplog: pytest.LogCaptureFixture, unused_tcp_port: int)
tests/middleware/test_logging.py:185
Functiontest_unsupported_ws_upgrade_request
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:847
Functiontest_unsupported_ws_upgrade_request_warn_on_auto
( caplog: pytest.LogCaptureFixture, http_protocol_cls: type[HTTPProtocol] )
tests/protocols/test_http.py:857
Functiontest_valid_import
()
tests/importer/test_importer.py:32
Functiontest_value_returned
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:629
Functiontest_wait_until_ready_bails_on_shutdown_or_dead_worker
()
tests/supervisors/test_multiprocess.py:190
Functiontest_warn_when_using_reload_and_workers
(caplog: pytest.LogCaptureFixture)
tests/test_config.py:614
Methodtest_watchfiles_no_changes
(self)
tests/supervisors/test_reload.py:289
Functiontest_websocket_auto
()
tests/test_auto_detection.py:52
Functiontest_ws_max_queue
()
tests/test_config.py:515
Functiontest_ws_max_size
()
tests/test_config.py:509
Functiontest_ws_websockets_emits_deprecation_warning
()
tests/test_config.py:502
Functiontest_wsgi_app
()
tests/test_config.py:191
Functiontest_wsgi_exc_info
(wsgi_middleware: Callable)
tests/middleware/test_wsgi.py:102
Functiontest_wsgi_exception
(wsgi_middleware: Callable)
tests/middleware/test_wsgi.py:92
Functiontest_wsgi_get
(wsgi_middleware: Callable)
tests/middleware/test_wsgi.py:61
Functiontest_wsgi_post
(wsgi_middleware: Callable)
tests/middleware/test_wsgi.py:70
Functiontest_wsgi_put_more_body
(wsgi_middleware: Callable)
tests/middleware/test_wsgi.py:79
Methodtimeout_keep_alive_handler
Called on a keep-alive connection if no new data is received after a short delay.
uvicorn/protocols/http/zttp_impl.py:308
Methodtimeout_keep_alive_handler
Called on a keep-alive connection if no new data is received after a short delay.
uvicorn/protocols/http/h11_impl.py:364
Methodtimeout_keep_alive_handler
Called on a keep-alive connection if no new data is received after a short delay.
uvicorn/protocols/http/httptools_impl.py:370
Functiontls_ca_certificate_pem_path
(tls_certificate_authority: trustme.CA)
tests/conftest.py:58
Functiontls_ca_certificate_private_key_path
(tls_certificate_authority: trustme.CA)
tests/conftest.py:64
Functiontls_ca_ssl_context
(tls_certificate_authority: trustme.CA)
tests/conftest.py:104
Functiontls_certificate
(tls_certificate_authority: trustme.CA)
tests/conftest.py:49
Functiontls_certificate_authority
()
tests/conftest.py:42
Functiontls_certificate_key_and_chain_path
(tls_certificate: trustme.LeafCert)
tests/conftest.py:92
Functiontls_certificate_private_key_encrypted_path
(tls_certificate)
tests/conftest.py:70
Functiontls_certificate_private_key_path
(tls_certificate: trustme.CA)
tests/conftest.py:86
Functiontls_certificate_server_cert_path
(tls_certificate: trustme.LeafCert)
tests/conftest.py:98
Functiontracking_run
(self: Server, sockets: object = None)
tests/test_main.py:150
Functionuds_file
(tmp_path: Path, request: pytest.FixtureRequest)
tests/test_cli.py:105
Methodunregister
(self, ws: WebSocketServerProtocol)
uvicorn/protocols/websockets/websockets_impl.py:55
Functionunused_tcp_port
()
tests/conftest.py:226
Methoduse_subprocess
(self)
uvicorn/config.py:378
Functionwait_app
(scope, receive, send)
tests/supervisors/test_signal.py:26
Functionweb_concurrency
(request: pytest.FixtureRequest)
tests/test_config.py:413
Functionwebsocket_app
(scope: Scope, receive: ASGIReceiveCallable, send: ASGISendCallable)
tests/middleware/test_proxy_headers.py:522
Functionwebsocket_app
(scope: Scope, receive: ASGIReceiveCallable, send: ASGISendCallable)
tests/middleware/test_logging.py:94
Methodwebsocket_connect
(self, message: WebSocketConnectEvent)
tests/protocols/test_websocket.py:117
Methodwebsocket_disconnect
(self, message: WebSocketDisconnectEvent)
tests/protocols/test_websocket.py:726
Methodwebsocket_receive
(self, message: WebSocketReceiveEvent)
tests/protocols/test_websocket.py:327
Methodwrite
(self, data: bytes)
tests/protocols/test_http.py:184
Functionws_cls
(request: pytest.FixtureRequest)
tests/benchmarks/test_ws.py:28
Methodws_handler
This is the main handler function for the 'websockets' implementation to call into. We just wait for close then return, and instead a
uvicorn/protocols/websockets/websockets_impl.py:242
Methodwsgi
(self, environ: Environ, start_response: StartResponse)
uvicorn/middleware/wsgi.py:177
Functionwsgi_app
(environ: Environ, start_response: StartResponse)
tests/test_config.py:48
Functionyaml_logging_config
(logging_config: dict)
tests/test_config.py:40
← previous701–777 of 777, ranked by callers