Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Kludex/starlette
/ functions
Functions
1,591 in github.com/Kludex/starlette
⨍
Functions
1,591
◇
Types & classes
206
↳
Endpoints
19
↓ 408 callers
Function
test_client_factory
( anyio_backend_name: Literal["asyncio", "trio"], anyio_backend_options: dict[str, Any], )
tests/conftest.py:38
↓ 284 callers
Method
get
(self, request: Request)
tests/test_endpoints.py:17
↓ 92 callers
Method
post
(self, request: Request)
tests/test_endpoints.py:112
↓ 79 callers
Method
json
(self)
starlette/requests.py:264
↓ 67 callers
Method
websocket_connect
( self, url: str, subprotocols: Sequence[str] | None = None, **kwargs: Any,
starlette/testclient.py:534
↓ 64 callers
Method
get
( self, key: str, cast: Callable[[Any], Any] | None = None, default: Any = und
starlette/config.py:94
↓ 63 callers
Method
append
(self, key: Any, value: Any)
starlette/datastructures.py:379
↓ 37 callers
Method
app
(self, scope: Scope, receive: Receive, send: Send)
starlette/routing.py:685
↓ 37 callers
Method
write
(self, s: Any)
tests/test_formparsers.py:1081
↓ 31 callers
Method
items
(self)
starlette/datastructures.py:550
↓ 28 callers
Method
decode
(self, websocket: WebSocket, message: Message)
starlette/endpoints.py:92
↓ 23 callers
Function
send
(message: Message)
benchmarks/_utils.py:37
↓ 22 callers
Method
accept
( self, subprotocol: str | None = None, headers: Iterable[tuple[bytes, bytes]] | None
starlette/websockets.py:106
↓ 19 callers
Function
get_span
(exporter: InMemorySpanExporter)
tests/middleware/test_opentelemetry.py:38
↓ 19 callers
Method
receive_json
(self, mode: str = "text")
starlette/websockets.py:136
↓ 18 callers
Method
keys
(self)
starlette/datastructures.py:544
↓ 18 callers
Method
send_json
(self, data: Any, mode: str = "text")
starlette/websockets.py:177
↓ 18 callers
Method
stream
(self)
starlette/requests.py:235
↓ 17 callers
Method
receive_text
(self)
starlette/websockets.py:122
↓ 17 callers
Method
run
(self, app: ASGIApp, scope: Scope, receive: Receive = unreadable_receive)
benchmarks/_utils.py:48
↓ 15 callers
Method
body
(self)
starlette/requests.py:255
↓ 15 callers
Method
pop
(self, key: Any, default: Any = None)
starlette/datastructures.py:346
↓ 15 callers
Method
read
(self, size: int = -1)
starlette/datastructures.py:477
↓ 15 callers
Method
send_text
(self, data: str)
starlette/websockets.py:171
↓ 15 callers
Method
update
( self, *args: MultiDict | Mapping[Any, Any] | list[tuple[Any, Any]], **kwargs: Any,
starlette/datastructures.py:383
↓ 14 callers
Method
get
(self, request: Request)
tests/test_applications.py:49
↓ 14 callers
Function
is_async_callable
(obj: AwaitableCallable[T])
starlette/_utils.py:54
↓ 12 callers
Method
close
(self)
tests/test_formparsers.py:1084
↓ 12 callers
Method
replace
(self, **kwargs: Any)
starlette/datastructures.py:120
↓ 12 callers
Method
url_path_for
(self, name: str, /, **path_params: Any)
starlette/routing.py:506
↓ 10 callers
Function
app
(scope: Scope, receive: Receive, send: Send)
tests/middleware/test_base.py:1222
↓ 10 callers
Method
close
(self)
starlette/requests.py:328
↓ 10 callers
Method
form
( self, *, max_files: int | float = 1000, max_fields: int | float = 1000,
starlette/requests.py:317
↓ 10 callers
Method
getlist
(self, key: str)
starlette/datastructures.py:553
↓ 10 callers
Function
receive
()
tests/middleware/test_base.py:298
↓ 10 callers
Method
send
(self, message: Message)
starlette/testclient.py:156
↓ 10 callers
Method
send
Send ASGI websocket messages, ensuring valid state transitions.
starlette/websockets.py:65
↓ 9 callers
Method
multi_items
(self)
starlette/datastructures.py:312
↓ 9 callers
Method
setdefault
(self, key: Any, default: Any = None)
starlette/datastructures.py:364
↓ 8 callers
Method
mark_modified
(self)
starlette/middleware/sessions.py:102
↓ 8 callers
Function
run_in_threadpool
(func: Callable[P, T], *args: P.args, **kwargs: P.kwargs)
starlette/concurrency.py:32
↓ 8 callers
Method
send_bytes
(self, data: bytes)
starlette/websockets.py:174
↓ 8 callers
Method
url_for
(self, name: str, /, **path_params: Any)
starlette/requests.py:199
↓ 8 callers
Method
values
(self)
starlette/datastructures.py:547
↓ 7 callers
Method
close
(self, code: int = 1000, reason: str | None = None)
starlette/websockets.py:186
↓ 7 callers
Function
func
()
tests/test__utils.py:14
↓ 7 callers
Method
receive_bytes
(self)
starlette/websockets.py:129
↓ 7 callers
Function
send
(message: Message)
tests/test_requests.py:572
↓ 7 callers
Method
send_early_hints
(self, link: str, /, *additional_links: str)
starlette/requests.py:354
↓ 6 callers
Function
create_collapsing_task_group
()
starlette/_utils.py:102
↓ 6 callers
Function
get_route_path
(scope: Scope)
starlette/_utils.py:137
↓ 6 callers
Function
receive
()
tests/test_responses.py:263
↓ 6 callers
Method
receive
Receive ASGI websocket messages, ensuring valid state transitions.
starlette/websockets.py:41
↓ 6 callers
Method
request
( # type: ignore[override] self, method: str, url: httpx._types.URLTypes, *,
starlette/testclient.py:493
↓ 6 callers
Method
seek
(self, offset: int)
starlette/datastructures.py:482
↓ 6 callers
Method
write
(self, data: bytes)
starlette/datastructures.py:467
↓ 5 callers
Method
clear
(self)
starlette/datastructures.py:360
↓ 5 callers
Method
close
(self, code: int = 1000, reason: str | None = None)
starlette/testclient.py:172
↓ 5 callers
Method
receive
(self)
starlette/testclient.py:175
↓ 5 callers
Method
setdefault
(self, key: str, default: typing.Any = None)
starlette/middleware/sessions.py:128
↓ 4 callers
Method
_raise_on_close
(self, message: Message)
starlette/testclient.py:141
↓ 4 callers
Method
background
()
tests/middleware/test_base.py:1080
↓ 4 callers
Function
build_environ
Builds a scope and request body into a WSGI environ object.
starlette/middleware/wsgi.py:26
↓ 4 callers
Function
compile_path
Given a path string, like: "/{username:str}", or a host string, like: "{subdomain}.mydomain.org", return a three-tuple of (regex, format,
starlette/routing.py:116
↓ 4 callers
Method
convert
(self, value: str)
starlette/convertors.py:13
↓ 4 callers
Method
get
(self, request: Request)
tests/test_authentication.py:87
↓ 4 callers
Method
get_path
Given the ASGI scope, return the `path` string to serve up, with OS specific path separators, and any '..', '.' components removed.
starlette/staticfiles.py:107
↓ 4 callers
Method
init_headers
(self, headers: Mapping[str, str] | None = None)
starlette/responses.py:58
↓ 4 callers
Method
make_absolute_url
(self, base_url: str | URL)
starlette/datastructures.py:205
↓ 4 callers
Method
render
(self, content: Any)
starlette/responses.py:49
↓ 4 callers
Function
replace_params
( path: str, param_convertors: dict[str, Convertor[Any]], path_params: dict[str, str], )
starlette/routing.py:93
↓ 4 callers
Method
set_cookie
( self, key: str, value: str = "", max_age: int | None = None, expires
starlette/responses.py:92
↓ 3 callers
Method
TemplateResponse
Render a template and return an HTML response. Args: request: The incoming request instance. name: The templ
starlette/templating.py:117
↓ 3 callers
Method
__anext__
(self)
tests/test_responses.py:143
↓ 3 callers
Method
_open_file
(self)
starlette/responses.py:417
↓ 3 callers
Method
_raise_on_disconnect
(self, message: Message)
starlette/websockets.py:118
↓ 3 callers
Method
_send
(message: Message)
starlette/middleware/errors.py:156
↓ 3 callers
Method
_wrap_websocket_denial_send
(self, send: Send)
starlette/responses.py:159
↓ 3 callers
Method
add_middleware
(self, middleware_class: _MiddlewareFactory[P], *args: P.args, **kwargs: P.kwargs)
starlette/applications.py:104
↓ 3 callers
Function
app
(scope: Scope, receive: Receive, send: Send)
tests/test_responses.py:30
↓ 3 callers
Method
get_template
(self, name: str)
starlette/templating.py:114
↓ 3 callers
Function
has_required_scope
(conn: HTTPConnection, scopes: Sequence[str])
starlette/authentication.py:18
↓ 3 callers
Function
make_content
(case: JSONCase)
benchmarks/json_benchmark.py:34
↓ 3 callers
Method
parse
(self)
starlette/formparsers.py:118
↓ 3 callers
Function
parse_host_header
Parse `host_header` into its host and port components. The host preserves brackets around IP literals. Invalid headers produce `None`.
starlette/_utils.py:115
↓ 3 callers
Method
receive
(self)
starlette/middleware/body_limit.py:62
↓ 3 callers
Function
render_json
(content: list[dict[str, object]])
benchmarks/json_benchmark.py:38
↓ 3 callers
Function
send
(message: Message)
tests/middleware/test_gzip.py:247
↓ 3 callers
Method
update
(self, other: Mapping[str, str])
starlette/datastructures.py:661
↓ 2 callers
Method
__exit__
(self, *args: Any)
starlette/testclient.py:583
↓ 2 callers
Method
__init__
( self, content: Any = None, status_code: int = 200, headers: Mapping[str, str
starlette/responses.py:34
↓ 2 callers
Method
__init__
( self, url: str = "", scope: Scope | None = None, **components: Any, )
starlette/datastructures.py:28
↓ 2 callers
Function
_normalize_content_types
(content_types: tuple[str, ...])
starlette/middleware/gzip.py:229
↓ 2 callers
Function
_user_safe_decode
(src: bytes | bytearray, codec: str)
starlette/formparsers.py:61
↓ 2 callers
Method
add_vary_header
(self, vary: str)
starlette/datastructures.py:673
↓ 2 callers
Function
app
(scope: Scope, receive: Receive, send: Send)
starlette/routing.py:58
↓ 2 callers
Function
app
(scope: Scope, receive: Receive, send: Send)
tests/test_routing.py:775
↓ 2 callers
Function
app
(scope: Scope, receive: Receive, send: Send)
tests/middleware/test_gzip.py:139
↓ 2 callers
Method
build_middleware_stack
(self)
starlette/applications.py:63
↓ 2 callers
Method
close
(self)
benchmarks/_utils.py:51
next →
1–100 of 1,591, ranked by callers