Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Kludex/uvicorn
/ functions
Functions
939 in github.com/Kludex/uvicorn
⨍
Functions
939
◇
Types & classes
99
↳
Endpoints
1
↓ 112 callers
Method
data_received
(self, data: bytes)
uvicorn/protocols/http/h11_impl.py:172
↓ 82 callers
Function
run_server
(config: Config, sockets: list[socket] | None = None)
tests/utils.py:16
↓ 66 callers
Method
close
(self)
tests/benchmarks/http.py:94
↓ 61 callers
Function
get_connected_protocol
( app: ASGIApplication, http_protocol_cls: type[HTTPProtocol], lifespan: LifespanOff | LifespanOn
tests/protocols/test_http.py:264
↓ 55 callers
Method
run_one
(self)
tests/protocols/test_http.py:238
↓ 51 callers
Method
load
(self)
uvicorn/config.py:439
↓ 50 callers
Method
data_to_send
(self)
tests/protocols/test_http2.py:199
↓ 40 callers
Method
join
(self)
uvicorn/supervisors/multiprocess.py:122
↓ 35 callers
Function
get_connected_protocol
( app: Callable[..., Any], lifespan: LifespanOff | LifespanOn | None = None, **kwargs: Any, )
tests/protocols/test_http2.py:157
↓ 35 callers
Method
run_one
(self)
tests/protocols/test_http2.py:131
↓ 35 callers
Method
write
(self, data: bytes)
tests/benchmarks/http.py:91
↓ 33 callers
Method
request
( self, method: bytes = b"GET", target: bytes = b"/", headers: list[tuple[byte
tests/protocols/test_http2.py:183
↓ 24 callers
Method
is_closing
(self)
tests/protocols/test_http.py:198
↓ 21 callers
Method
is_closing
(self)
tests/benchmarks/http.py:103
↓ 19 callers
Method
cancel
(self)
tests/benchmarks/http.py:123
↓ 18 callers
Function
as_cwd
Changes working directory and returns to previous on exit.
tests/utils.py:41
↓ 17 callers
Method
start
(self)
uvicorn/supervisors/multiprocess.py:98
↓ 16 callers
Method
is_closing
(self)
tests/protocols/test_http2.py:83
↓ 15 callers
Method
create_task
(self, coroutine: Any)
tests/benchmarks/http.py:134
↓ 15 callers
Method
parse_response
(self, data: bytes, stream_id: int = 1)
tests/protocols/test_http2.py:223
↓ 13 callers
Method
resume_reading
(self)
uvicorn/protocols/http/flow_control.py:26
↓ 13 callers
Function
websocket_session
(url: str)
tests/protocols/test_websocket.py:519
↓ 12 callers
Method
_setup_reloader
(self, config: Config)
tests/supervisors/test_reload.py:62
↓ 12 callers
Method
call_later
(self, delay: float, callback: Callable[[], None], *args: Any)
tests/benchmarks/http.py:138
↓ 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:124
↓ 12 callers
Method
run_one
(self)
tests/benchmarks/http.py:143
↓ 12 callers
Method
shutdown
(self)
tests/supervisors/test_reload.py:368
↓ 11 callers
Method
clear
(self)
uvicorn/protocols/websockets/wsproto_impl.py:57
↓ 11 callers
Method
send
(self, message: LifespanSendMessage)
uvicorn/lifespan/on.py:102
↓ 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
Function
get_local_addr
(transport: asyncio.Transport)
uvicorn/protocols/utils.py:30
↓ 9 callers
Function
get_remote_addr
(transport: asyncio.Transport)
uvicorn/protocols/utils.py:13
↓ 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:377
↓ 8 callers
Method
app_finished
Wait for the ASGI application task to complete.
tests/protocols/test_websocket.py:1509
↓ 8 callers
Method
events
(self, data: bytes)
tests/protocols/test_http2.py:202
↓ 8 callers
Function
get_client_addr
(scope: WWWScope)
uvicorn/protocols/utils.py:51
↓ 8 callers
Function
get_negotiator
( app: Callable[..., Any], alpn_protocol: str | None = None, sslcontext: bool = False, **kwarg
tests/protocols/test_http2.py:880
↓ 8 callers
Function
is_ssl
(transport: asyncio.Transport)
uvicorn/protocols/utils.py:47
↓ 7 callers
Method
add_done_callback
(self, callback: Callable[[], None])
tests/benchmarks/http.py:148
↓ 7 callers
Method
connection_lost
(self)
tests/protocols/test_websocket.py:1555
↓ 7 callers
Method
extend
(self, event: events.TextMessage | events.BytesMessage)
uvicorn/protocols/websockets/wsproto_impl.py:48
↓ 7 callers
Function
frame
(ftype: int, flags: int, stream_id: int, payload: bytes)
tests/protocols/test_http2.py:172
↓ 7 callers
Function
get_path_with_query_string
(scope: WWWScope)
uvicorn/protocols/utils.py:58
↓ 7 callers
Function
make_httpx2_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
pause_reading
(self)
uvicorn/protocols/http/flow_control.py:21
↓ 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
serve
(self, sockets: list[socket.socket] | None = None)
uvicorn/server.py:88
↓ 7 callers
Method
shutdown
(self)
tests/protocols/test_http2.py:152
↓ 6 callers
Method
get_protocol
(self)
tests/protocols/test_http2.py:92
↓ 6 callers
Function
run
( app: ASGIApplication | Callable[..., Any] | str, *, host: str = "127.0.0.1", port: int = 800
uvicorn/main.py:503
↓ 6 callers
Method
send
(self, message: ASGISendEvent)
uvicorn/protocols/http/h11_impl.py:455
↓ 6 callers
Function
style
(text: str, fg: str | None = None, bold: bool = False)
uvicorn/_ansi.py:23
↓ 5 callers
Function
app
(scope, receive, send)
tests/test_ssl.py:16
↓ 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:568
↓ 5 callers
Method
connection_made
( # type: ignore[override] self, transport: asyncio.Transport )
uvicorn/protocols/http/h11_impl.py:92
↓ 5 callers
Method
drain
(self)
uvicorn/protocols/http/flow_control.py:18
↓ 5 callers
Method
get_loop_factory
(self)
uvicorn/config.py:555
↓ 5 callers
Method
kill
(self)
uvicorn/supervisors/multiprocess.py:115
↓ 5 callers
Method
reply_to_server_close
Read the server frames; the client echoes the close frame, per RFC 6455 5.5.1.
tests/protocols/test_websocket.py:1530
↓ 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
_close_connection
Send GOAWAY and close the transport.
uvicorn/protocols/http/zttp_h2_impl.py:298
↓ 4 callers
Method
_read_response
(self)
tests/protocols/test_websocket.py:1584
↓ 4 callers
Method
_should_upgrade
(self)
uvicorn/protocols/http/httptools_impl.py:166
↓ 4 callers
Method
_stage
(self, flush: bool)
tests/protocols/test_websocket.py:1579
↓ 4 callers
Method
_unset_keepalive_if_required
(self)
uvicorn/protocols/http/zttp_impl.py:110
↓ 4 callers
Method
_unset_keepalive_if_required
(self)
uvicorn/protocols/http/h11_impl.py:135
↓ 4 callers
Method
flush
Write out bytes zttp queued outside a cycle's send path - the connection preface and DATA released by a WINDOW_UPDATE credit.
uvicorn/protocols/http/zttp_h2_impl.py:148
↓ 4 callers
Method
get_extra_info
(self, key: Any)
tests/benchmarks/http.py:84
↓ 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
init_processes
(self)
uvicorn/supervisors/multiprocess.py:159
↓ 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:85
↓ 4 callers
Method
run
(self)
uvicorn/supervisors/basereload.py:49
↓ 4 callers
Method
send_close
(self, flush: bool = True)
tests/protocols/test_websocket.py:1525
↓ 4 callers
Method
send_text
(self, text: str, flush: bool = True)
tests/protocols/test_websocket.py:1515
↓ 4 callers
Method
set_protocol
(self, protocol: asyncio.Protocol)
tests/benchmarks/http.py:109
↓ 4 callers
Method
terminate_all
(self)
uvicorn/supervisors/multiprocess.py:165
↓ 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/zttp_h2_impl.py:120
↓ 3 callers
Method
_unset_keepalive_if_required
(self)
uvicorn/protocols/http/httptools_impl.py:138
↓ 3 callers
Function
assert_signal
Check that a signal was received and handled in a block
tests/utils.py:29
↓ 3 callers
Method
clear_buffer
(self)
tests/protocols/test_http.py:201
↓ 3 callers
Method
eof_received
(self)
uvicorn/protocols/http/h11_impl.py:132
↓ 3 callers
Method
handle_exit
(self, sig: int, frame: FrameType | None)
uvicorn/server.py:351
↓ 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:317
↓ 3 callers
Method
schedule_ping
(self)
uvicorn/protocols/websockets/websockets_sansio_impl.py:342
↓ 3 callers
Method
send_receive_event_to_app
(self)
uvicorn/protocols/websockets/websockets_sansio_impl.py:289
↓ 3 callers
Method
shutdown
(self, sockets: list[socket.socket] | None = None)
uvicorn/server.py:281
next →
1–100 of 939, ranked by callers