MCPcopy Create free account

hub / github.com/Kludex/uvicorn / functions

Functions752 in github.com/Kludex/uvicorn

↓ 79 callersFunctionrun_server
(config: Config, sockets: list[socket] | None = None)
tests/utils.py:16
↓ 69 callersMethoddata_received
(self, data: bytes)
uvicorn/protocols/http/h11_impl.py:172
↓ 56 callersMethodclose
(self)
tests/benchmarks/http.py:94
↓ 56 callersFunctionget_connected_protocol
( app: ASGIApplication, http_protocol_cls: type[HTTPProtocol], lifespan: LifespanOff | LifespanOn
tests/protocols/test_http.py:264
↓ 50 callersMethodrun_one
(self)
tests/protocols/test_http.py:238
↓ 43 callersMethodload
(self)
uvicorn/config.py:432
↓ 37 callersMethodjoin
(self)
uvicorn/supervisors/multiprocess.py:122
↓ 29 callersMethodwrite
(self, data: bytes)
tests/benchmarks/http.py:91
↓ 24 callersMethodis_closing
(self)
tests/protocols/test_http.py:198
↓ 19 callersMethodstart
(self)
uvicorn/supervisors/multiprocess.py:98
↓ 18 callersFunctionas_cwd
Changes working directory and returns to previous on exit.
tests/utils.py:41
↓ 16 callersMethodshutdown
(self)
tests/supervisors/test_reload.py:368
↓ 14 callersMethodis_closing
(self)
tests/benchmarks/http.py:103
↓ 13 callersMethodcreate_task
(self, coroutine: Any)
tests/benchmarks/http.py:134
↓ 12 callersMethod_setup_reloader
(self, config: Config)
tests/supervisors/test_reload.py:62
↓ 12 callersFunctionimport_from_string
(import_str: Any)
uvicorn/importer.py:9
↓ 12 callersFunctionopen_connection
(url: str)
tests/protocols/test_websocket.py:119
↓ 12 callersMethodrun_one
(self)
tests/benchmarks/http.py:143
↓ 11 callersMethodsend
(self, message: LifespanSendMessage)
uvicorn/lifespan/on.py:102
↓ 11 callersFunctionwebsocket_session
(url: str)
tests/protocols/test_websocket.py:507
↓ 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 callersMethodcancel
(self)
tests/benchmarks/http.py:123
↓ 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:352
↓ 8 callersMethodclear
(self)
uvicorn/protocols/websockets/wsproto_impl.py:57
↓ 7 callersMethodextend
(self, event: events.TextMessage | events.BytesMessage)
uvicorn/protocols/websockets/wsproto_impl.py:48
↓ 7 callersFunctionget_local_addr
(transport: asyncio.Transport)
uvicorn/protocols/utils.py:30
↓ 7 callersFunctionget_remote_addr
(transport: asyncio.Transport)
uvicorn/protocols/utils.py:13
↓ 7 callersFunctionmake_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 callersMethodping
Receives a timeout and returns True if the worker answers a healthcheck in time.
uvicorn/supervisors/multiprocess.py:49
↓ 7 callersMethodresume_reading
(self)
uvicorn/protocols/http/flow_control.py:26
↓ 7 callersMethodserve
(self, sockets: list[socket.socket] | None = None)
uvicorn/server.py:76
↓ 6 callersMethodcall_later
(self, delay: float, callback: Callable[[], None], *args: Any)
tests/benchmarks/http.py:138
↓ 6 callersFunctionget_client_addr
(scope: WWWScope)
uvicorn/protocols/utils.py:51
↓ 6 callersFunctionrun
( app: ASGIApplication | Callable[..., Any] | str, *, host: str = "127.0.0.1", port: int = 800
uvicorn/main.py:494
↓ 6 callersMethodsend
(self, message: ASGISendEvent)
uvicorn/protocols/http/h11_impl.py:460
↓ 6 callersFunctionstyle
(text: str, fg: str | None = None, bold: bool = False)
uvicorn/_ansi.py:23
↓ 5 callersMethodadd_done_callback
(self, callback: Callable[[], None])
tests/benchmarks/http.py:148
↓ 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:550
↓ 5 callersMethodget_loop_factory
(self)
uvicorn/config.py:537
↓ 5 callersFunctionget_path_with_query_string
(scope: WWWScope)
uvicorn/protocols/utils.py:58
↓ 5 callersFunctionis_ssl
(transport: asyncio.Transport)
uvicorn/protocols/utils.py:47
↓ 5 callersMethodkill
(self)
uvicorn/supervisors/multiprocess.py:115
↓ 5 callersMethodpause_reading
(self)
uvicorn/protocols/http/flow_control.py:21
↓ 5 callersMethodterminate
(self)
uvicorn/supervisors/multiprocess.py:101
↓ 5 callersFunctionwsgi_middleware
(request: pytest.FixtureRequest)
tests/middleware/test_wsgi.py:56
↓ 4 callersMethod_should_upgrade
(self)
uvicorn/protocols/http/httptools_impl.py:166
↓ 4 callersMethod_unset_keepalive_if_required
(self)
uvicorn/protocols/http/h11_impl.py:135
↓ 4 callersMethodconnection_made
( # type: ignore[override] self, transport: asyncio.Transport )
uvicorn/protocols/http/h11_impl.py:92
↓ 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 callersMethodis_alive
(self, timeout: float = 5)
uvicorn/supervisors/multiprocess.py:79
↓ 4 callersMethodrun
(self, sockets: list[socket.socket] | None = None)
uvicorn/server.py:73
↓ 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/httptools_impl.py:138
↓ 3 callersFunctionapp
(scope, receive, send)
tests/test_ssl.py:16
↓ 3 callersFunctionassert_signal
Check that a signal was received and handled in a block
tests/utils.py:29
↓ 3 callersMethodclose
(self)
tests/protocols/test_http.py:188
↓ 3 callersMethoddrain
(self)
uvicorn/protocols/http/flow_control.py:18
↓ 3 callersMethodget_extra_info
(self, key: Any)
tests/benchmarks/http.py:84
↓ 3 callersMethodhandle_exit
(self, sig: int, frame: FrameType | None)
uvicorn/server.py:339
↓ 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:293
↓ 3 callersMethodschedule_ping
(self)
uvicorn/protocols/websockets/websockets_sansio_impl.py:290
↓ 3 callersMethodsend_receive_event_to_app
(self)
uvicorn/protocols/websockets/websockets_sansio_impl.py:241
↓ 3 callersMethodshutdown
(self, sockets: list[socket.socket] | None = None)
uvicorn/server.py:269
↓ 3 callersMethodtrace
(message: Any, *args: Any, **kwargs: Any)
uvicorn/middleware/message_logger.py:42
↓ 2 callersFunction_display_path
(path: Path)
uvicorn/supervisors/basereload.py:120
↓ 2 callersMethod_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 callersFunction_parse_raw_hosts
(value: str)
uvicorn/middleware/proxy_headers.py:66
↓ 2 callersFunction_raw_server
( *, app: ASGIApplication, port: int, http_protocol_cls: type[H11Protocol | HttpToolsProtocol]
tests/test_server.py:171
↓ 2 callersMethod_should_upgrade_to_ws
(self)
uvicorn/protocols/http/h11_impl.py:152
↓ 2 callersMethod_should_upgrade_to_ws
(self)
uvicorn/protocols/http/httptools_impl.py:155
↓ 2 callersMethod_start_asgi_task
(self, cycle: RequestResponseCycle, app: ASGI3Application)
uvicorn/protocols/http/httptools_impl.py:299
↓ 2 callersFunctionassert_event_loop
(expected_loop_class: type[AbstractEventLoop])
tests/test_compat.py:13
↓ 2 callersMethodclear_buffer
(self)
tests/protocols/test_http.py:201
↓ 2 callersMethodconfigure_logging
(self)
uvicorn/config.py:380
↓ 2 callersFunctioncreate_ssl_context
( certfile: str | os.PathLike[str], keyfile: str | os.PathLike[str] | None, password: str | None,
uvicorn/config.py:117
↓ 2 callersMethodcreate_task
(self, coroutine: Any)
tests/protocols/test_http.py:229
↓ 2 callersFunctionextract_json_body
(request: bytes)
tests/test_server.py:187
↓ 2 callersFunctionget_connected_ws_protocol
(config: Config, ws_protocol_cls: WSProtocolClass)
tests/benchmarks/ws.py:33
↓ 2 callersFunctionget_data
(url: str)
tests/protocols/test_websocket.py:266
↓ 2 callersMethodhandle_events
(self)
uvicorn/protocols/http/h11_impl.py:178
↓ 2 callersMethodhandle_parser_exception
(self)
uvicorn/protocols/websockets/websockets_sansio_impl.py:334
↓ 2 callersFunctionhttp_protocol_cls
(request: pytest.FixtureRequest)
tests/conftest.py:259
↓ 2 callersMethodinit_processes
(self)
uvicorn/supervisors/multiprocess.py:159
↓ 2 callersMethodis_ready
Receives a timeout and returns True if the worker answers and its server has finished startup.
uvicorn/supervisors/multiprocess.py:53
↓ 2 callersMethodload_app
Import the app and return it. Exits on failure.
uvicorn/config.py:424
↓ 2 callersMethodmain
(self)
uvicorn/lifespan/on.py:78
↓ 2 callersFunctionmake_config
(app: ASGIApplication, **kwargs: Any)
tests/benchmarks/http.py:160
↓ 2 callersMethodrun
(self)
uvicorn/supervisors/basereload.py:49
↓ 2 callersMethodsend_500_response
(self)
uvicorn/protocols/websockets/wsproto_impl.py:324
↓ 2 callersMethodsend_500_response
(self)
uvicorn/protocols/websockets/websockets_sansio_impl.py:364
next →1–100 of 752, ranked by callers