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
Method
set_protocol
(self, protocol: asyncio.Protocol)
tests/protocols/test_http.py:204
Method
setup
(self, reload_directory_structure: Path, reloader_class: type[BaseReload] | None)
tests/supervisors/test_reload.py:56
Function
short_socket_name
(tmp_path, tmp_path_factory)
tests/conftest.py:182
Method
should_reload
(self)
uvicorn/config.py:599
Method
should_restart
(self)
uvicorn/supervisors/statreload.py:28
Method
should_restart
(self)
uvicorn/supervisors/watchfilesreload.py:79
Method
should_use_colors
(self)
uvicorn/logging.py:52
Method
should_use_colors
(self)
uvicorn/logging.py:69
Method
shutdown
Called by the server to commence a graceful shutdown.
uvicorn/protocols/http/h11_impl.py:341
Method
shutdown
Called by the server to commence a graceful shutdown.
uvicorn/protocols/http/httptools_impl.py:349
Method
shutdown
(self)
uvicorn/protocols/websockets/wsproto_impl.py:195
Method
shutdown
(self)
uvicorn/protocols/websockets/websockets_sansio_impl.py:142
Method
shutdown
(self)
uvicorn/protocols/websockets/websockets_impl.py:151
Function
sleep_touch
(*paths: Path)
tests/supervisors/test_reload.py:33
Function
ssl_context_factory
(config: Config, default_ssl_context_factory: DefaultFactory)
tests/test_ssl.py:114
Function
start
(*paths: Path)
tests/supervisors/test_reload.py:43
Method
start_response
( self, status: str, response_headers: Iterable[tuple[str, str]], exc_info: Ex
uvicorn/middleware/wsgi.py:157
Function
stdin_socket
()
tests/test_config.py:565
Method
target
(self, sockets: list[socket] | None = None)
uvicorn/supervisors/multiprocess.py:66
Function
test_100_continue_not_sent_when_body_not_consumed
( http_protocol_cls: type[HTTPProtocol], )
tests/protocols/test_http.py:809
Function
test_100_continue_sent_when_body_consumed
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:778
Function
test_accept_connection
(ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int)
tests/protocols/test_websocket.py:114
Function
test_access_logging
( use_colors: bool, caplog: pytest.LogCaptureFixture, logging_config: dict[str, Any], unused_tcp_port: int
tests/middleware/test_logging.py:125
Function
test_add_additional_header
(unused_tcp_port: int)
tests/test_default_headers.py:53
Function
test_app_close
( ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int, code: in
tests/protocols/test_websocket.py:456
Function
test_app_dir
(tmp_path: Path, caplog: pytest.LogCaptureFixture)
tests/test_cli.py:173
Function
test_app_exception
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:537
Function
test_app_factory
(caplog: pytest.LogCaptureFixture)
tests/test_config.py:227
Function
test_app_unimportable_module
()
tests/test_config.py:208
Function
test_app_unimportable_other
(caplog: pytest.LogCaptureFixture)
tests/test_config.py:214
Function
test_asgi_return_value
The ASGI callable should return 'None'. If it doesn't, make sure that the connection is closed with an error condition.
tests/protocols/test_websocket.py:415
Function
test_asgi_version
(app: ASGIApplication, expected_interface: Literal["2.0", "3.0"])
tests/test_config.py:297
Function
test_asyncio_run__custom_loop_factory
()
tests/test_compat.py:21
Function
test_asyncio_run__default_loop_factory
()
tests/test_compat.py:17
Function
test_asyncio_run__passing_a_non_awaitable_callback_should_throw_error
()
tests/test_compat.py:25
Function
test_base_reloader_closes_sockets_on_shutdown
()
tests/supervisors/test_reload.py:404
Function
test_base_reloader_run
(tmp_path: Path)
tests/supervisors/test_reload.py:357
Function
test_base_reloader_should_exit
(tmp_path: Path)
tests/supervisors/test_reload.py:388
Function
test_bench_chunked_response
(http_protocol_cls: type[HTTPProtocol])
tests/benchmarks/test_http.py:85
Function
test_bench_connection_close
(http_protocol_cls: type[HTTPProtocol])
tests/benchmarks/test_http.py:97
Function
test_bench_fragmented_body
(http_protocol_cls: type[HTTPProtocol])
tests/benchmarks/test_http.py:103
Function
test_bench_http10
(http_protocol_cls: type[HTTPProtocol])
tests/benchmarks/test_http.py:91
Function
test_bench_keepalive_reuse
(http_protocol_cls: type[HTTPProtocol])
tests/benchmarks/test_http.py:77
Function
test_bench_large_post
(http_protocol_cls: type[HTTPProtocol])
tests/benchmarks/test_http.py:63
Function
test_bench_pipelined_requests
(http_protocol_cls: type[HTTPProtocol])
tests/benchmarks/test_http.py:69
Function
test_bench_post_body_receive
(http_protocol_cls: type[HTTPProtocol])
tests/benchmarks/test_http.py:111
Function
test_bench_simple_get
(http_protocol_cls: type[HTTPProtocol])
tests/benchmarks/test_http.py:51
Function
test_bench_simple_post
(http_protocol_cls: type[HTTPProtocol])
tests/benchmarks/test_http.py:57
Function
test_bench_ws_handshake
(ws_cls: WSProtocolClass)
tests/benchmarks/test_ws.py:55
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_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:159
Function
test_chunked_encoding
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:448
Function
test_chunked_encoding_empty_body
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:459
Function
test_chunked_encoding_head_request
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:470
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:492
Function
test_client_connection_lost
( ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int )
tests/protocols/test_websocket.py:520
Function
test_client_connection_lost_on_send
( ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int )
tests/protocols/test_websocket.py:553
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:186
Function
test_close_connection_with_multiple_requests
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:1054
Function
test_close_connection_with_post_request
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:1068
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:433
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:580
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_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:1175
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:402
Function
test_duplicate_start_message
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:593
Function
test_early_disconnect
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:642
Function
test_early_response
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:663
Function
test_env_file
Test that one can load environment variables using an env file.
tests/test_config.py:426
← previous
next →
401–500 of 752, ranked by callers