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
↓ 79 callers
Function
run_server
(config: Config, sockets: list[socket] | None = None)
tests/utils.py:16
↓ 69 callers
Method
data_received
(self, data: bytes)
uvicorn/protocols/http/h11_impl.py:172
↓ 56 callers
Method
close
(self)
tests/benchmarks/http.py:94
↓ 56 callers
Function
get_connected_protocol
( app: ASGIApplication, http_protocol_cls: type[HTTPProtocol], lifespan: LifespanOff | LifespanOn
tests/protocols/test_http.py:264
↓ 50 callers
Method
run_one
(self)
tests/protocols/test_http.py:238
↓ 43 callers
Method
load
(self)
uvicorn/config.py:432
↓ 37 callers
Method
join
(self)
uvicorn/supervisors/multiprocess.py:122
↓ 29 callers
Method
write
(self, data: bytes)
tests/benchmarks/http.py:91
↓ 24 callers
Method
is_closing
(self)
tests/protocols/test_http.py:198
↓ 19 callers
Method
start
(self)
uvicorn/supervisors/multiprocess.py:98
↓ 18 callers
Function
as_cwd
Changes working directory and returns to previous on exit.
tests/utils.py:41
↓ 16 callers
Method
shutdown
(self)
tests/supervisors/test_reload.py:368
↓ 14 callers
Method
is_closing
(self)
tests/benchmarks/http.py:103
↓ 13 callers
Method
create_task
(self, coroutine: Any)
tests/benchmarks/http.py:134
↓ 12 callers
Method
_setup_reloader
(self, config: Config)
tests/supervisors/test_reload.py:62
↓ 12 callers
Function
import_from_string
(import_str: Any)
uvicorn/importer.py:9
↓ 12 callers
Function
open_connection
(url: str)
tests/protocols/test_websocket.py:119
↓ 12 callers
Method
run_one
(self)
tests/benchmarks/http.py:143
↓ 11 callers
Method
send
(self, message: LifespanSendMessage)
uvicorn/lifespan/on.py:102
↓ 11 callers
Function
websocket_session
(url: str)
tests/protocols/test_websocket.py:507
↓ 10 callers
Method
_reload_tester
( self, touch_soon: Callable[[Path], None], reloader: BaseReload, *files: Path )
tests/supervisors/test_reload.py:71
↓ 10 callers
Function
caplog_for_logger
(caplog: pytest.LogCaptureFixture, logger_name: str)
tests/middleware/test_logging.py:31
↓ 10 callers
Function
get_connected_protocol
( config: Config, http_protocol_cls: type[HTTPProtocol], )
tests/benchmarks/http.py:164
↓ 10 callers
Function
test
()
tests/test_lifespan.py:25
↓ 9 callers
Method
cancel
(self)
tests/benchmarks/http.py:123
↓ 9 callers
Method
getsockname
(self)
tests/protocols/test_utils.py:26
↓ 9 callers
Method
join_all
(self)
uvicorn/supervisors/multiprocess.py:169
↓ 9 callers
Method
send
(self, message: ASGISendEvent)
uvicorn/protocols/websockets/wsproto_impl.py:352
↓ 8 callers
Method
clear
(self)
uvicorn/protocols/websockets/wsproto_impl.py:57
↓ 7 callers
Method
extend
(self, event: events.TextMessage | events.BytesMessage)
uvicorn/protocols/websockets/wsproto_impl.py:48
↓ 7 callers
Function
get_local_addr
(transport: asyncio.Transport)
uvicorn/protocols/utils.py:30
↓ 7 callers
Function
get_remote_addr
(transport: asyncio.Transport)
uvicorn/protocols/utils.py:13
↓ 7 callers
Function
make_httpx_client
Create async client for use in test cases. Args: trusted_hosts: trusted_hosts for proxy middleware client: transport client to us
tests/middleware/test_proxy_headers.py:43
↓ 7 callers
Method
ping
Receives a timeout and returns True if the worker answers a healthcheck in time.
uvicorn/supervisors/multiprocess.py:49
↓ 7 callers
Method
resume_reading
(self)
uvicorn/protocols/http/flow_control.py:26
↓ 7 callers
Method
serve
(self, sockets: list[socket.socket] | None = None)
uvicorn/server.py:76
↓ 6 callers
Method
call_later
(self, delay: float, callback: Callable[[], None], *args: Any)
tests/benchmarks/http.py:138
↓ 6 callers
Function
get_client_addr
(scope: WWWScope)
uvicorn/protocols/utils.py:51
↓ 6 callers
Function
run
( app: ASGIApplication | Callable[..., Any] | str, *, host: str = "127.0.0.1", port: int = 800
uvicorn/main.py:494
↓ 6 callers
Method
send
(self, message: ASGISendEvent)
uvicorn/protocols/http/h11_impl.py:460
↓ 6 callers
Function
style
(text: str, fg: str | None = None, bold: bool = False)
uvicorn/_ansi.py:23
↓ 5 callers
Method
add_done_callback
(self, callback: Callable[[], None])
tests/benchmarks/http.py:148
↓ 5 callers
Function
asyncio_run
( main: Coroutine[Any, Any, _T], *, debug: bool = False, loop_factory: Callabl
uvicorn/_compat.py:21
↓ 5 callers
Method
bind_socket
(self)
uvicorn/config.py:550
↓ 5 callers
Method
get_loop_factory
(self)
uvicorn/config.py:537
↓ 5 callers
Function
get_path_with_query_string
(scope: WWWScope)
uvicorn/protocols/utils.py:58
↓ 5 callers
Function
is_ssl
(transport: asyncio.Transport)
uvicorn/protocols/utils.py:47
↓ 5 callers
Method
kill
(self)
uvicorn/supervisors/multiprocess.py:115
↓ 5 callers
Method
pause_reading
(self)
uvicorn/protocols/http/flow_control.py:21
↓ 5 callers
Method
terminate
(self)
uvicorn/supervisors/multiprocess.py:101
↓ 5 callers
Function
wsgi_middleware
(request: pytest.FixtureRequest)
tests/middleware/test_wsgi.py:56
↓ 4 callers
Method
_should_upgrade
(self)
uvicorn/protocols/http/httptools_impl.py:166
↓ 4 callers
Method
_unset_keepalive_if_required
(self)
uvicorn/protocols/http/h11_impl.py:135
↓ 4 callers
Method
connection_made
( # type: ignore[override] self, transport: asyncio.Transport )
uvicorn/protocols/http/h11_impl.py:92
↓ 4 callers
Function
get_subprocess
Called in the parent process, to instantiate a new child process instance. The child is not yet started at this point. * config - The Uv
uvicorn/_subprocess.py:21
↓ 4 callers
Method
is_alive
(self, timeout: float = 5)
uvicorn/supervisors/multiprocess.py:79
↓ 4 callers
Method
run
(self, sockets: list[socket.socket] | None = None)
uvicorn/server.py:73
↓ 3 callers
Function
_make_http_scope
(headers: list[tuple[bytes, bytes]], scheme: str = "http")
tests/middleware/test_proxy_headers.py:559
↓ 3 callers
Method
_unset_keepalive_if_required
(self)
uvicorn/protocols/http/httptools_impl.py:138
↓ 3 callers
Function
app
(scope, receive, send)
tests/test_ssl.py:16
↓ 3 callers
Function
assert_signal
Check that a signal was received and handled in a block
tests/utils.py:29
↓ 3 callers
Method
close
(self)
tests/protocols/test_http.py:188
↓ 3 callers
Method
drain
(self)
uvicorn/protocols/http/flow_control.py:18
↓ 3 callers
Method
get_extra_info
(self, key: Any)
tests/benchmarks/http.py:84
↓ 3 callers
Method
handle_exit
(self, sig: int, frame: FrameType | None)
uvicorn/server.py:339
↓ 3 callers
Function
load_env_var
(key: str, value: str)
tests/test_cli.py:25
↓ 3 callers
Function
message_with_placeholders
Return an ASGI message, with any body-type content omitted and replaced with a placeholder.
uvicorn/middleware/message_logger.py:22
↓ 3 callers
Method
pause
(self)
uvicorn/supervisors/basereload.py:62
↓ 3 callers
Method
restart_all
Replaces each worker, bringing its replacement into service before retiring the old worker.
uvicorn/supervisors/multiprocess.py:173
↓ 3 callers
Method
schedule_ping
(self)
uvicorn/protocols/websockets/wsproto_impl.py:293
↓ 3 callers
Method
schedule_ping
(self)
uvicorn/protocols/websockets/websockets_sansio_impl.py:290
↓ 3 callers
Method
send_receive_event_to_app
(self)
uvicorn/protocols/websockets/websockets_sansio_impl.py:241
↓ 3 callers
Method
shutdown
(self, sockets: list[socket.socket] | None = None)
uvicorn/server.py:269
↓ 3 callers
Method
trace
(message: Any, *args: Any, **kwargs: Any)
uvicorn/middleware/message_logger.py:42
↓ 2 callers
Function
_display_path
(path: Path)
uvicorn/supervisors/basereload.py:120
↓ 2 callers
Method
_healthcheck
Receives a timeout and returns the worker's startup flag, or None if it does not answer in time.
uvicorn/supervisors/multiprocess.py:38
↓ 2 callers
Function
_parse_raw_hosts
(value: str)
uvicorn/middleware/proxy_headers.py:66
↓ 2 callers
Function
_raw_server
( *, app: ASGIApplication, port: int, http_protocol_cls: type[H11Protocol | HttpToolsProtocol]
tests/test_server.py:171
↓ 2 callers
Method
_should_upgrade_to_ws
(self)
uvicorn/protocols/http/h11_impl.py:152
↓ 2 callers
Method
_should_upgrade_to_ws
(self)
uvicorn/protocols/http/httptools_impl.py:155
↓ 2 callers
Method
_start_asgi_task
(self, cycle: RequestResponseCycle, app: ASGI3Application)
uvicorn/protocols/http/httptools_impl.py:299
↓ 2 callers
Function
assert_event_loop
(expected_loop_class: type[AbstractEventLoop])
tests/test_compat.py:13
↓ 2 callers
Method
clear_buffer
(self)
tests/protocols/test_http.py:201
↓ 2 callers
Method
configure_logging
(self)
uvicorn/config.py:380
↓ 2 callers
Function
create_ssl_context
( certfile: str | os.PathLike[str], keyfile: str | os.PathLike[str] | None, password: str | None,
uvicorn/config.py:117
↓ 2 callers
Method
create_task
(self, coroutine: Any)
tests/protocols/test_http.py:229
↓ 2 callers
Function
extract_json_body
(request: bytes)
tests/test_server.py:187
↓ 2 callers
Function
get_connected_ws_protocol
(config: Config, ws_protocol_cls: WSProtocolClass)
tests/benchmarks/ws.py:33
↓ 2 callers
Function
get_data
(url: str)
tests/protocols/test_websocket.py:266
↓ 2 callers
Method
handle_events
(self)
uvicorn/protocols/http/h11_impl.py:178
↓ 2 callers
Method
handle_parser_exception
(self)
uvicorn/protocols/websockets/websockets_sansio_impl.py:334
↓ 2 callers
Function
http_protocol_cls
(request: pytest.FixtureRequest)
tests/conftest.py:259
↓ 2 callers
Method
init_processes
(self)
uvicorn/supervisors/multiprocess.py:159
↓ 2 callers
Method
is_ready
Receives a timeout and returns True if the worker answers and its server has finished startup.
uvicorn/supervisors/multiprocess.py:53
↓ 2 callers
Method
load_app
Import the app and return it. Exits on failure.
uvicorn/config.py:424
↓ 2 callers
Method
main
(self)
uvicorn/lifespan/on.py:78
↓ 2 callers
Function
make_config
(app: ASGIApplication, **kwargs: Any)
tests/benchmarks/http.py:160
↓ 2 callers
Method
run
(self)
uvicorn/supervisors/basereload.py:49
↓ 2 callers
Method
send_500_response
(self)
uvicorn/protocols/websockets/wsproto_impl.py:324
↓ 2 callers
Method
send_500_response
(self)
uvicorn/protocols/websockets/websockets_sansio_impl.py:364
next →
1–100 of 752, ranked by callers