MCPcopy Create free account

hub / github.com/Kludex/uvicorn / functions

Functions777 in github.com/Kludex/uvicorn

↓ 79 callersFunctionrun_server
(config: Config, sockets: list[socket] | None = None)
tests/utils.py:16
↓ 71 callersMethoddata_received
(self, data: bytes)
uvicorn/protocols/http/h11_impl.py:172
↓ 62 callersMethodclose
(self)
tests/benchmarks/http.py:94
↓ 58 callersFunctionget_connected_protocol
( app: ASGIApplication, http_protocol_cls: type[HTTPProtocol], lifespan: LifespanOff | LifespanOn
tests/protocols/test_http.py:264
↓ 52 callersMethodrun_one
(self)
tests/protocols/test_http.py:238
↓ 44 callersMethodload
(self)
uvicorn/config.py:433
↓ 37 callersMethodjoin
(self)
uvicorn/supervisors/multiprocess.py:122
↓ 32 callersMethodwrite
(self, data: bytes)
tests/benchmarks/http.py:91
↓ 25 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
↓ 17 callersMethodis_closing
(self)
tests/benchmarks/http.py:103
↓ 16 callersMethodshutdown
(self)
tests/supervisors/test_reload.py:368
↓ 14 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:120
↓ 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:515
↓ 10 callersMethod_reload_tester
( self, touch_soon: Callable[[Path], None], reloader: BaseReload, *files: Path )
tests/supervisors/test_reload.py:71
↓ 10 callersMethodcancel
(self)
tests/benchmarks/http.py:123
↓ 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 callersMethodclear
(self)
uvicorn/protocols/websockets/wsproto_impl.py:57
↓ 9 callersMethodgetsockname
(self)
tests/protocols/test_utils.py:26
↓ 9 callersMethodjoin_all
(self)
uvicorn/supervisors/multiprocess.py:169
↓ 9 callersMethodresume_reading
(self)
uvicorn/protocols/http/flow_control.py:26
↓ 9 callersMethodsend
(self, message: ASGISendEvent)
uvicorn/protocols/websockets/wsproto_impl.py:352
↓ 8 callersFunctionget_local_addr
(transport: asyncio.Transport)
uvicorn/protocols/utils.py:30
↓ 8 callersFunctionget_remote_addr
(transport: asyncio.Transport)
uvicorn/protocols/utils.py:13
↓ 7 callersMethodcall_later
(self, delay: float, callback: Callable[[], None], *args: Any)
tests/benchmarks/http.py:138
↓ 7 callersMethodextend
(self, event: events.TextMessage | events.BytesMessage)
uvicorn/protocols/websockets/wsproto_impl.py:48
↓ 7 callersFunctionget_client_addr
(scope: WWWScope)
uvicorn/protocols/utils.py:51
↓ 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 callersMethodserve
(self, sockets: list[socket.socket] | None = None)
uvicorn/server.py:79
↓ 6 callersMethodadd_done_callback
(self, callback: Callable[[], None])
tests/benchmarks/http.py:148
↓ 6 callersFunctionget_path_with_query_string
(scope: WWWScope)
uvicorn/protocols/utils.py:58
↓ 6 callersFunctionis_ssl
(transport: asyncio.Transport)
uvicorn/protocols/utils.py:47
↓ 6 callersMethodpause_reading
(self)
uvicorn/protocols/http/flow_control.py:21
↓ 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 callersFunctionasyncio_run
( main: Coroutine[Any, Any, _T], *, debug: bool = False, loop_factory: Callabl
uvicorn/_compat.py:21
↓ 5 callersMethodbind_socket
(self)
uvicorn/config.py:551
↓ 5 callersMethodget_loop_factory
(self)
uvicorn/config.py:538
↓ 5 callersMethodkill
(self)
uvicorn/supervisors/multiprocess.py:115
↓ 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/zttp_impl.py:110
↓ 4 callersMethod_unset_keepalive_if_required
(self)
uvicorn/protocols/http/h11_impl.py:135
↓ 4 callersFunctionapp
(scope, receive, send)
tests/test_ssl.py:16
↓ 4 callersMethodconnection_made
( # type: ignore[override] self, transport: asyncio.Transport )
uvicorn/protocols/http/h11_impl.py:92
↓ 4 callersMethoddrain
(self)
uvicorn/protocols/http/flow_control.py:18
↓ 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:76
↓ 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 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 callersMethodclose
(self)
tests/protocols/test_http.py:188
↓ 3 callersMethodget_extra_info
(self, key: Any)
tests/benchmarks/http.py:84
↓ 3 callersMethodhandle_exit
(self, sig: int, frame: FrameType | None)
uvicorn/server.py:342
↓ 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 callersMethodrun
(self)
uvicorn/supervisors/basereload.py:49
↓ 3 callersMethodschedule_ping
(self)
uvicorn/protocols/websockets/wsproto_impl.py:293
↓ 3 callersMethodschedule_ping
(self)
uvicorn/protocols/websockets/websockets_sansio_impl.py:298
↓ 3 callersMethodsend_receive_event_to_app
(self)
uvicorn/protocols/websockets/websockets_sansio_impl.py:249
↓ 3 callersMethodset_protocol
(self, protocol: asyncio.Protocol)
tests/benchmarks/http.py:109
↓ 3 callersMethodshutdown
(self, sockets: list[socket.socket] | None = None)
uvicorn/server.py:272
↓ 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/zttp_impl.py:115
↓ 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 callersMethodconfigure_logging
(self)
uvicorn/config.py:381
↓ 2 callersFunctioncreate_ssl_context
( certfile: str | os.PathLike[str], keyfile: str | os.PathLike[str] | None, password: str | None,
uvicorn/config.py:118
↓ 2 callersMethodcreate_task
(self, coroutine: Any)
tests/protocols/test_http.py:229
↓ 2 callersMethodevents
Yield every complete event currently available.
uvicorn/protocols/http/zttp_impl.py:144
↓ 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:274
↓ 2 callersMethodhandle_events
(self)
uvicorn/protocols/http/zttp_impl.py:152
↓ 2 callersMethodhandle_events
(self)
uvicorn/protocols/http/h11_impl.py:178
↓ 2 callersMethodhandle_parser_exception
(self)
uvicorn/protocols/websockets/websockets_sansio_impl.py:342
↓ 2 callersFunctionhttp_protocol_cls
(request: pytest.FixtureRequest)
tests/conftest.py:267
↓ 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
next →1–100 of 777, ranked by callers