Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Kludex/uvicorn
/ functions
Functions
820 in github.com/Kludex/uvicorn
⨍
Functions
820
◇
Types & classes
88
↳
Endpoints
1
Method
on_body
(self, body: bytes)
uvicorn/protocols/http/httptools_impl.py:313
Method
on_header
(self, name: bytes, value: bytes)
uvicorn/protocols/http/httptools_impl.py:242
Method
on_headers_complete
(self)
uvicorn/protocols/http/httptools_impl.py:248
Method
on_message_begin
(self)
uvicorn/protocols/http/httptools_impl.py:222
Method
on_message_complete
(self)
uvicorn/protocols/http/httptools_impl.py:321
Method
on_response_complete
(self)
uvicorn/protocols/http/zttp_impl.py:266
Method
on_response_complete
(self)
uvicorn/protocols/http/h11_impl.py:322
Method
on_response_complete
(self)
uvicorn/protocols/http/httptools_impl.py:327
Method
on_task_complete
(self, task: asyncio.Task[None])
uvicorn/protocols/websockets/wsproto_impl.py:222
Method
on_task_complete
(self, task: asyncio.Task[None])
uvicorn/protocols/websockets/websockets_sansio_impl.py:404
Method
on_task_complete
(self, task: asyncio.Task[None])
uvicorn/protocols/websockets/websockets_impl.py:160
Method
on_url
(self, url: bytes)
uvicorn/protocols/http/httptools_impl.py:239
Method
pause_reading
(self)
tests/protocols/test_http.py:192
Method
pause_reading
(self)
tests/protocols/test_websocket.py:1467
Method
pause_reading
(self)
tests/benchmarks/http.py:97
Method
pause_writing
Called by the transport when the write buffer exceeds the high water mark.
uvicorn/protocols/http/zttp_impl.py:296
Method
pause_writing
Called by the transport when the write buffer exceeds the high water mark.
uvicorn/protocols/http/h11_impl.py:352
Method
pause_writing
(self)
uvicorn/protocols/http/flow_control.py:31
Method
pause_writing
Called by the transport when the write buffer exceeds the high water mark.
uvicorn/protocols/http/httptools_impl.py:358
Method
pause_writing
Called by the transport when the write buffer exceeds the high water mark.
uvicorn/protocols/websockets/wsproto_impl.py:194
Method
pause_writing
Called by the transport when the write buffer exceeds the high water mark.
uvicorn/protocols/websockets/websockets_sansio_impl.py:165
Method
pid
(self)
uvicorn/supervisors/multiprocess.py:133
Function
print_version
(ctx: click.Context, param: click.Parameter, value: bool)
uvicorn/main.py:47
Method
process_request
This hook is called to determine if the websocket should return an HTTP response and close. Our behavior here is to start th
uvicorn/protocols/websockets/websockets_impl.py:163
Method
process_subprotocol
We override the standard 'process_subprotocol' behavior here so that we return whatever subprotocol is sent in the 'accept' message.
uvicorn/protocols/websockets/websockets_impl.py:219
Function
raise_exception
(environ: Environ, start_response: StartResponse)
tests/middleware/test_wsgi.py:37
Method
reading_paused
(self)
tests/protocols/test_websocket.py:1570
Method
receive
(self)
uvicorn/protocols/http/zttp_impl.py:521
Method
receive
(self)
uvicorn/protocols/http/h11_impl.py:527
Method
receive
(self)
uvicorn/protocols/http/httptools_impl.py:563
Method
receive
(self)
uvicorn/protocols/websockets/wsproto_impl.py:495
Method
receive
(self)
uvicorn/protocols/websockets/websockets_sansio_impl.py:550
Method
register
(self, ws: WebSocketServerProtocol)
uvicorn/protocols/websockets/websockets_impl.py:52
Function
reload_directory_structure
This fixture creates a directory structure to enable reload parameter tests The fixture has the following structure: root ├── [app,
tests/conftest.py:111
Method
restart
(self)
uvicorn/supervisors/statreload.py:45
Method
resume_reading
(self)
tests/protocols/test_http.py:195
Method
resume_reading
(self)
tests/protocols/test_websocket.py:1470
Method
resume_reading
(self)
tests/benchmarks/http.py:100
Method
resume_writing
(self)
uvicorn/protocols/http/flow_control.py:36
Method
resume_writing
Called by the transport when the write buffer drops below the low water mark.
uvicorn/protocols/websockets/wsproto_impl.py:200
Method
resume_writing
Called by the transport when the write buffer drops below the low water mark.
uvicorn/protocols/websockets/websockets_sansio_impl.py:171
Function
return_exc_info
(environ: Environ, start_response: StartResponse)
tests/middleware/test_wsgi.py:41
Function
run
(sockets: list[socket.socket] | None)
tests/supervisors/test_reload.py:29
Method
run
(self)
uvicorn/workers.py:103
Method
send
(self, message: ASGISendEvent)
uvicorn/protocols/websockets/websockets_sansio_impl.py:432
Method
send_keepalive_ping
(self)
uvicorn/protocols/websockets/wsproto_impl.py:322
Method
send_keepalive_ping
(self)
uvicorn/protocols/websockets/websockets_sansio_impl.py:347
Method
server
(self)
uvicorn/supervisors/multiprocess.py:127
Function
server_run
(sockets: list[socket.socket])
tests/test_subprocess.py:11
Function
service_unavailable
(scope: Scope, receive: ASGIReceiveCallable, send: ASGISendCallable)
uvicorn/protocols/http/flow_control.py:42
Method
set_protocol
(self, protocol: asyncio.Protocol)
tests/protocols/test_http.py:204
Method
setup
(self, reload_directory_structure: Path, reloader_class: type[BaseReload] | None)
tests/supervisors/test_reload.py:56
Function
short_socket_name
(tmp_path, tmp_path_factory)
tests/conftest.py:182
Method
should_reload
(self)
uvicorn/config.py:600
Method
should_restart
(self)
uvicorn/supervisors/statreload.py:28
Method
should_restart
(self)
uvicorn/supervisors/watchfilesreload.py:79
Method
should_use_colors
(self)
uvicorn/logging.py:52
Method
should_use_colors
(self)
uvicorn/logging.py:69
Method
shutdown
Called by the server to commence a graceful shutdown.
uvicorn/protocols/http/zttp_impl.py:287
Method
shutdown
Called by the server to commence a graceful shutdown.
uvicorn/protocols/http/h11_impl.py:341
Method
shutdown
Called by the server to commence a graceful shutdown.
uvicorn/protocols/http/httptools_impl.py:349
Method
shutdown
(self)
uvicorn/protocols/websockets/wsproto_impl.py:206
Method
shutdown
(self)
uvicorn/protocols/websockets/websockets_sansio_impl.py:177
Method
shutdown
(self)
uvicorn/protocols/websockets/websockets_impl.py:152
Function
sleep_touch
(*paths: Path)
tests/supervisors/test_reload.py:33
Function
ssl_context_factory
(config: Config, default_ssl_context_factory: DefaultFactory)
tests/test_ssl.py:114
Function
start
(*paths: Path)
tests/supervisors/test_reload.py:43
Method
start_response
( self, status: str, response_headers: Iterable[tuple[str, str]], exc_info: Ex
uvicorn/middleware/wsgi.py:157
Function
stdin_socket
()
tests/test_config.py:565
Method
target
(self, sockets: list[socket] | None = None)
uvicorn/supervisors/multiprocess.py:66
Function
test_100_continue_not_sent_when_body_not_consumed
( http_protocol_cls: type[HTTPProtocol], )
tests/protocols/test_http.py:824
Function
test_100_continue_sent_when_body_consumed
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:793
Function
test_accept_connection
(ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int)
tests/protocols/test_websocket.py:119
Function
test_access_logging
( use_colors: bool, caplog: pytest.LogCaptureFixture, logging_config: dict[str, Any], unused_tcp_port: int
tests/middleware/test_logging.py:125
Function
test_add_additional_header
(unused_tcp_port: int)
tests/test_default_headers.py:53
Function
test_app_close
( ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int, code: in
tests/protocols/test_websocket.py:468
Function
test_app_dir
(tmp_path: Path, caplog: pytest.LogCaptureFixture)
tests/test_cli.py:173
Function
test_app_exception
(http_protocol_cls: type[HTTPProtocol])
tests/protocols/test_http.py:547
Function
test_app_factory
(caplog: pytest.LogCaptureFixture)
tests/test_config.py:227
Function
test_app_unimportable_module
()
tests/test_config.py:208
Function
test_app_unimportable_other
(caplog: pytest.LogCaptureFixture)
tests/test_config.py:214
Function
test_asgi_return_value
The ASGI callable should return 'None'. If it doesn't, make sure that the connection is closed with an error condition.
tests/protocols/test_websocket.py:427
Function
test_asgi_version
(app: ASGIApplication, expected_interface: Literal["2.0", "3.0"])
tests/test_config.py:297
Function
test_asyncio_run__custom_loop_factory
()
tests/test_compat.py:21
Function
test_asyncio_run__default_loop_factory
()
tests/test_compat.py:17
Function
test_asyncio_run__passing_a_non_awaitable_callback_should_throw_error
()
tests/test_compat.py:25
Function
test_base_reloader_closes_sockets_on_shutdown
()
tests/supervisors/test_reload.py:404
Function
test_base_reloader_run
(tmp_path: Path)
tests/supervisors/test_reload.py:357
Function
test_base_reloader_should_exit
(tmp_path: Path)
tests/supervisors/test_reload.py:388
Function
test_bench_chunked_response
(http_protocol_cls: type[HTTPProtocol])
tests/benchmarks/test_http.py:85
Function
test_bench_connection_close
(http_protocol_cls: type[HTTPProtocol])
tests/benchmarks/test_http.py:97
Function
test_bench_fragmented_body
(http_protocol_cls: type[HTTPProtocol])
tests/benchmarks/test_http.py:103
Function
test_bench_http10
(http_protocol_cls: type[HTTPProtocol])
tests/benchmarks/test_http.py:91
Function
test_bench_keepalive_reuse
(http_protocol_cls: type[HTTPProtocol])
tests/benchmarks/test_http.py:77
Function
test_bench_large_post
(http_protocol_cls: type[HTTPProtocol])
tests/benchmarks/test_http.py:63
Function
test_bench_pipelined_requests
(http_protocol_cls: type[HTTPProtocol])
tests/benchmarks/test_http.py:69
Function
test_bench_post_body_receive
(http_protocol_cls: type[HTTPProtocol])
tests/benchmarks/test_http.py:111
Function
test_bench_simple_get
(http_protocol_cls: type[HTTPProtocol])
tests/benchmarks/test_http.py:51
Function
test_bench_simple_post
(http_protocol_cls: type[HTTPProtocol])
tests/benchmarks/test_http.py:57
Function
test_bench_ws_handshake
(ws_cls: WSProtocolClass)
tests/benchmarks/test_ws.py:55
← previous
next →
401–500 of 820, ranked by callers