MCPcopy Create free account

hub / github.com/Kludex/uvicorn / functions

Functions939 in github.com/Kludex/uvicorn

↓ 112 callersMethoddata_received
(self, data: bytes)
uvicorn/protocols/http/h11_impl.py:172
↓ 82 callersFunctionrun_server
(config: Config, sockets: list[socket] | None = None)
tests/utils.py:16
↓ 66 callersMethodclose
(self)
tests/benchmarks/http.py:94
↓ 61 callersFunctionget_connected_protocol
( app: ASGIApplication, http_protocol_cls: type[HTTPProtocol], lifespan: LifespanOff | LifespanOn
tests/protocols/test_http.py:264
↓ 55 callersMethodrun_one
(self)
tests/protocols/test_http.py:238
↓ 51 callersMethodload
(self)
uvicorn/config.py:439
↓ 50 callersMethoddata_to_send
(self)
tests/protocols/test_http2.py:199
↓ 40 callersMethodjoin
(self)
uvicorn/supervisors/multiprocess.py:122
↓ 35 callersFunctionget_connected_protocol
( app: Callable[..., Any], lifespan: LifespanOff | LifespanOn | None = None, **kwargs: Any, )
tests/protocols/test_http2.py:157
↓ 35 callersMethodrun_one
(self)
tests/protocols/test_http2.py:131
↓ 35 callersMethodwrite
(self, data: bytes)
tests/benchmarks/http.py:91
↓ 33 callersMethodrequest
( self, method: bytes = b"GET", target: bytes = b"/", headers: list[tuple[byte
tests/protocols/test_http2.py:183
↓ 24 callersMethodis_closing
(self)
tests/protocols/test_http.py:198
↓ 21 callersMethodis_closing
(self)
tests/benchmarks/http.py:103
↓ 19 callersMethodcancel
(self)
tests/benchmarks/http.py:123
↓ 18 callersFunctionas_cwd
Changes working directory and returns to previous on exit.
tests/utils.py:41
↓ 17 callersMethodstart
(self)
uvicorn/supervisors/multiprocess.py:98
↓ 16 callersMethodis_closing
(self)
tests/protocols/test_http2.py:83
↓ 15 callersMethodcreate_task
(self, coroutine: Any)
tests/benchmarks/http.py:134
↓ 15 callersMethodparse_response
(self, data: bytes, stream_id: int = 1)
tests/protocols/test_http2.py:223
↓ 13 callersMethodresume_reading
(self)
uvicorn/protocols/http/flow_control.py:26
↓ 13 callersFunctionwebsocket_session
(url: str)
tests/protocols/test_websocket.py:519
↓ 12 callersMethod_setup_reloader
(self, config: Config)
tests/supervisors/test_reload.py:62
↓ 12 callersMethodcall_later
(self, delay: float, callback: Callable[[], None], *args: Any)
tests/benchmarks/http.py:138
↓ 12 callersFunctionimport_from_string
(import_str: Any)
uvicorn/importer.py:9
↓ 12 callersFunctionopen_connection
(url: str)
tests/protocols/test_websocket.py:124
↓ 12 callersMethodrun_one
(self)
tests/benchmarks/http.py:143
↓ 12 callersMethodshutdown
(self)
tests/supervisors/test_reload.py:368
↓ 11 callersMethodclear
(self)
uvicorn/protocols/websockets/wsproto_impl.py:57
↓ 11 callersMethodsend
(self, message: LifespanSendMessage)
uvicorn/lifespan/on.py:102
↓ 10 callersMethod_reload_tester
( self, touch_soon: Callable[[Path], None], reloader: BaseReload, *files: Path )
tests/supervisors/test_reload.py:71
↓ 10 callersFunctioncaplog_for_logger
(caplog: pytest.LogCaptureFixture, logger_name: str)
tests/middleware/test_logging.py:31
↓ 10 callersFunctionget_connected_protocol
( config: Config, http_protocol_cls: type[HTTPProtocol], )
tests/benchmarks/http.py:164
↓ 10 callersFunctiontest
()
tests/test_lifespan.py:25
↓ 9 callersFunctionget_local_addr
(transport: asyncio.Transport)
uvicorn/protocols/utils.py:30
↓ 9 callersFunctionget_remote_addr
(transport: asyncio.Transport)
uvicorn/protocols/utils.py:13
↓ 9 callersMethodgetsockname
(self)
tests/protocols/test_utils.py:26
↓ 9 callersMethodjoin_all
(self)
uvicorn/supervisors/multiprocess.py:169
↓ 9 callersMethodsend
(self, message: ASGISendEvent)
uvicorn/protocols/websockets/wsproto_impl.py:377
↓ 8 callersMethodapp_finished
Wait for the ASGI application task to complete.
tests/protocols/test_websocket.py:1509
↓ 8 callersMethodevents
(self, data: bytes)
tests/protocols/test_http2.py:202
↓ 8 callersFunctionget_client_addr
(scope: WWWScope)
uvicorn/protocols/utils.py:51
↓ 8 callersFunctionget_negotiator
( app: Callable[..., Any], alpn_protocol: str | None = None, sslcontext: bool = False, **kwarg
tests/protocols/test_http2.py:880
↓ 8 callersFunctionis_ssl
(transport: asyncio.Transport)
uvicorn/protocols/utils.py:47
↓ 7 callersMethodadd_done_callback
(self, callback: Callable[[], None])
tests/benchmarks/http.py:148
↓ 7 callersMethodconnection_lost
(self)
tests/protocols/test_websocket.py:1555
↓ 7 callersMethodextend
(self, event: events.TextMessage | events.BytesMessage)
uvicorn/protocols/websockets/wsproto_impl.py:48
↓ 7 callersFunctionframe
(ftype: int, flags: int, stream_id: int, payload: bytes)
tests/protocols/test_http2.py:172
↓ 7 callersFunctionget_path_with_query_string
(scope: WWWScope)
uvicorn/protocols/utils.py:58
↓ 7 callersFunctionmake_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 callersMethodpause_reading
(self)
uvicorn/protocols/http/flow_control.py:21
↓ 7 callersMethodping
Receives a timeout and returns True if the worker answers a healthcheck in time.
uvicorn/supervisors/multiprocess.py:49
↓ 7 callersMethodserve
(self, sockets: list[socket.socket] | None = None)
uvicorn/server.py:88
↓ 7 callersMethodshutdown
(self)
tests/protocols/test_http2.py:152
↓ 6 callersMethodget_protocol
(self)
tests/protocols/test_http2.py:92
↓ 6 callersFunctionrun
( app: ASGIApplication | Callable[..., Any] | str, *, host: str = "127.0.0.1", port: int = 800
uvicorn/main.py:503
↓ 6 callersMethodsend
(self, message: ASGISendEvent)
uvicorn/protocols/http/h11_impl.py:455
↓ 6 callersFunctionstyle
(text: str, fg: str | None = None, bold: bool = False)
uvicorn/_ansi.py:23
↓ 5 callersFunctionapp
(scope, receive, send)
tests/test_ssl.py:16
↓ 5 callersFunctionasyncio_run
( main: Coroutine[Any, Any, _T], *, debug: bool = False, loop_factory: Callabl
uvicorn/_compat.py:21
↓ 5 callersMethodbind_socket
(self)
uvicorn/config.py:568
↓ 5 callersMethodconnection_made
( # type: ignore[override] self, transport: asyncio.Transport )
uvicorn/protocols/http/h11_impl.py:92
↓ 5 callersMethoddrain
(self)
uvicorn/protocols/http/flow_control.py:18
↓ 5 callersMethodget_loop_factory
(self)
uvicorn/config.py:555
↓ 5 callersMethodkill
(self)
uvicorn/supervisors/multiprocess.py:115
↓ 5 callersMethodreply_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 callersMethodterminate
(self)
uvicorn/supervisors/multiprocess.py:101
↓ 5 callersFunctionwsgi_middleware
(request: pytest.FixtureRequest)
tests/middleware/test_wsgi.py:56
↓ 4 callersMethod_close_connection
Send GOAWAY and close the transport.
uvicorn/protocols/http/zttp_h2_impl.py:298
↓ 4 callersMethod_read_response
(self)
tests/protocols/test_websocket.py:1584
↓ 4 callersMethod_should_upgrade
(self)
uvicorn/protocols/http/httptools_impl.py:166
↓ 4 callersMethod_stage
(self, flush: bool)
tests/protocols/test_websocket.py:1579
↓ 4 callersMethod_unset_keepalive_if_required
(self)
uvicorn/protocols/http/zttp_impl.py:110
↓ 4 callersMethod_unset_keepalive_if_required
(self)
uvicorn/protocols/http/h11_impl.py:135
↓ 4 callersMethodflush
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 callersMethodget_extra_info
(self, key: Any)
tests/benchmarks/http.py:84
↓ 4 callersFunctionget_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 callersMethodinit_processes
(self)
uvicorn/supervisors/multiprocess.py:159
↓ 4 callersMethodis_alive
(self, timeout: float = 5)
uvicorn/supervisors/multiprocess.py:79
↓ 4 callersMethodrun
(self, sockets: list[socket.socket] | None = None)
uvicorn/server.py:85
↓ 4 callersMethodrun
(self)
uvicorn/supervisors/basereload.py:49
↓ 4 callersMethodsend_close
(self, flush: bool = True)
tests/protocols/test_websocket.py:1525
↓ 4 callersMethodsend_text
(self, text: str, flush: bool = True)
tests/protocols/test_websocket.py:1515
↓ 4 callersMethodset_protocol
(self, protocol: asyncio.Protocol)
tests/benchmarks/http.py:109
↓ 4 callersMethodterminate_all
(self)
uvicorn/supervisors/multiprocess.py:165
↓ 3 callersFunction_make_http_scope
(headers: list[tuple[bytes, bytes]], scheme: str = "http")
tests/middleware/test_proxy_headers.py:559
↓ 3 callersMethod_unset_keepalive_if_required
(self)
uvicorn/protocols/http/zttp_h2_impl.py:120
↓ 3 callersMethod_unset_keepalive_if_required
(self)
uvicorn/protocols/http/httptools_impl.py:138
↓ 3 callersFunctionassert_signal
Check that a signal was received and handled in a block
tests/utils.py:29
↓ 3 callersMethodclear_buffer
(self)
tests/protocols/test_http.py:201
↓ 3 callersMethodeof_received
(self)
uvicorn/protocols/http/h11_impl.py:132
↓ 3 callersMethodhandle_exit
(self, sig: int, frame: FrameType | None)
uvicorn/server.py:351
↓ 3 callersFunctionload_env_var
(key: str, value: str)
tests/test_cli.py:25
↓ 3 callersFunctionmessage_with_placeholders
Return an ASGI message, with any body-type content omitted and replaced with a placeholder.
uvicorn/middleware/message_logger.py:22
↓ 3 callersMethodpause
(self)
uvicorn/supervisors/basereload.py:62
↓ 3 callersMethodrestart_all
Replaces each worker, bringing its replacement into service before retiring the old worker.
uvicorn/supervisors/multiprocess.py:173
↓ 3 callersMethodschedule_ping
(self)
uvicorn/protocols/websockets/wsproto_impl.py:317
↓ 3 callersMethodschedule_ping
(self)
uvicorn/protocols/websockets/websockets_sansio_impl.py:342
↓ 3 callersMethodsend_receive_event_to_app
(self)
uvicorn/protocols/websockets/websockets_sansio_impl.py:289
↓ 3 callersMethodshutdown
(self, sockets: list[socket.socket] | None = None)
uvicorn/server.py:281
next →1–100 of 939, ranked by callers