Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/encode/starlette
/ functions
Functions
1,516 in github.com/encode/starlette
⨍
Functions
1,516
◇
Types & classes
205
↳
Endpoints
18
↓ 384 callers
Function
test_client_factory
( anyio_backend_name: Literal["asyncio", "trio"], anyio_backend_options: dict[str, Any], )
tests/conftest.py:32
↓ 271 callers
Method
get
(self, request: Request)
tests/test_endpoints.py:17
↓ 89 callers
Method
post
responses: 200: description: An organisation. examples: {"name": "Foo Corp."}
tests/test_schemas.py:73
↓ 78 callers
Method
json
(self)
starlette/requests.py:262
↓ 67 callers
Method
websocket_connect
( self, url: str, subprotocols: Sequence[str] | None = None, **kwargs: Any,
starlette/testclient.py:479
↓ 64 callers
Method
append
(self, key: Any, value: Any)
starlette/datastructures.py:363
↓ 63 callers
Method
get
( self, key: str, cast: Callable[[Any], Any] | None = None, default: Any = und
starlette/config.py:94
↓ 37 callers
Method
write
(self, s: Any)
tests/test_formparsers.py:1050
↓ 36 callers
Method
app
(self, scope: Scope, receive: Receive, send: Send)
starlette/routing.py:678
↓ 32 callers
Method
items
(self)
starlette/datastructures.py:534
↓ 28 callers
Method
decode
(self, websocket: WebSocket, message: Message)
starlette/endpoints.py:91
↓ 22 callers
Method
accept
( self, subprotocol: str | None = None, headers: Iterable[tuple[bytes, bytes]] | None
starlette/websockets.py:106
↓ 22 callers
Function
send
(message: Message)
benchmarks/_utils.py:37
↓ 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:528
↓ 18 callers
Method
send_json
(self, data: Any, mode: str = "text")
starlette/websockets.py:177
↓ 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:254
↓ 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:367
↓ 14 callers
Method
get
(self, request: Request)
tests/test_applications.py:49
↓ 14 callers
Function
is_async_callable
(obj: AwaitableCallable[T])
starlette/_utils.py:57
↓ 14 callers
Method
pop
(self, key: Any, default: Any = None)
starlette/datastructures.py:330
↓ 13 callers
Method
read
(self, size: int = -1)
starlette/datastructures.py:461
↓ 12 callers
Function
app
(scope: Scope, receive: Receive, send: Send)
tests/middleware/test_gzip.py:121
↓ 12 callers
Method
replace
(self, **kwargs: Any)
starlette/datastructures.py:115
↓ 12 callers
Method
url_path_for
(self, name: str, /, **path_params: Any)
starlette/routing.py:499
↓ 11 callers
Method
close
(self)
tests/test_formparsers.py:1053
↓ 10 callers
Method
close
(self)
starlette/requests.py:324
↓ 10 callers
Method
form
( self, *, max_files: int | float = 1000, max_fields: int | float = 1000,
starlette/requests.py:313
↓ 10 callers
Function
receive
()
tests/middleware/test_base.py:302
↓ 10 callers
Method
stream
(self)
starlette/requests.py:234
↓ 9 callers
Method
getlist
(self, key: str)
starlette/datastructures.py:537
↓ 9 callers
Method
multi_items
(self)
starlette/datastructures.py:296
↓ 9 callers
Method
send
(self, message: Message)
starlette/testclient.py:163
↓ 9 callers
Method
send
Send ASGI websocket messages, ensuring valid state transitions.
starlette/websockets.py:65
↓ 9 callers
Method
setdefault
(self, key: Any, default: Any = None)
starlette/datastructures.py:348
↓ 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:198
↓ 8 callers
Method
values
(self)
starlette/datastructures.py:531
↓ 7 callers
Method
close
(self, code: int = 1000, reason: str | None = None)
starlette/websockets.py:186
↓ 7 callers
Function
func
()
tests/test__utils.py:18
↓ 7 callers
Method
mark_modified
(self)
starlette/middleware/sessions.py:101
↓ 7 callers
Method
receive_bytes
(self)
starlette/websockets.py:129
↓ 7 callers
Method
seek
(self, offset: int)
starlette/datastructures.py:466
↓ 7 callers
Function
send
(message: Message)
tests/test_responses.py:263
↓ 7 callers
Method
write
(self, data: bytes)
starlette/datastructures.py:451
↓ 6 callers
Method
clear
(self)
starlette/datastructures.py:344
↓ 6 callers
Function
get_route_path
(scope: Scope)
starlette/_utils.py:140
↓ 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:438
↓ 5 callers
Function
create_collapsing_task_group
()
starlette/_utils.py:105
↓ 5 callers
Function
receive
()
tests/test_responses.py:260
↓ 5 callers
Method
receive
(self)
starlette/testclient.py:182
↓ 4 callers
Method
_raise_on_close
(self, message: Message)
starlette/testclient.py:148
↓ 4 callers
Method
background
()
tests/middleware/test_base.py:1082
↓ 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:111
↓ 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:55
↓ 4 callers
Method
make_absolute_url
(self, base_url: str | URL)
starlette/datastructures.py:189
↓ 4 callers
Method
render
(self, content: Any)
starlette/responses.py:48
↓ 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:89
↓ 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:140
↓ 3 callers
Method
_raise_on_disconnect
(self, message: Message)
starlette/websockets.py:118
↓ 3 callers
Method
_wrap_websocket_denial_send
(self, send: Send)
starlette/responses.py:156
↓ 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:27
↓ 3 callers
Function
build_environ
Builds a scope and request body into a WSGI environ object.
starlette/middleware/wsgi.py:26
↓ 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
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:118
↓ 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
Method
setdefault
(self, key: str, default: typing.Any = None)
starlette/middleware/sessions.py:126
↓ 3 callers
Method
update
(self, other: Mapping[str, str])
starlette/datastructures.py:645
↓ 2 callers
Method
__exit__
(self, *args: Any)
starlette/testclient.py:527
↓ 2 callers
Method
__init__
( self, content: Any = None, status_code: int = 200, headers: Mapping[str, str
starlette/responses.py:33
↓ 2 callers
Method
__init__
( self, url: str = "", scope: Scope | None = None, **components: Any, )
starlette/datastructures.py:26
↓ 2 callers
Function
_normalize_content_types
(content_types: tuple[str, ...])
starlette/middleware/gzip.py:221
↓ 2 callers
Method
_send
(message: Message)
starlette/middleware/errors.py:156
↓ 2 callers
Function
_user_safe_decode
(src: bytes | bytearray, codec: str)
starlette/formparsers.py:48
↓ 2 callers
Method
add_vary_header
(self, vary: str)
starlette/datastructures.py:657
↓ 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:760
↓ 2 callers
Method
build_middleware_stack
(self)
starlette/applications.py:63
↓ 2 callers
Method
close
(self)
benchmarks/_utils.py:51
↓ 2 callers
Method
delete_cookie
( self, key: str, path: str = "/", domain: str | None = None, secure:
starlette/responses.py:134
↓ 2 callers
Function
dispatch
(runner: ASGIRunner, app: FormApp, chunks: tuple[bytes, ...])
benchmarks/urlencoded_benchmark.py:105
↓ 2 callers
Function
dispatch
(runner: ASGIRunner, app: ASGIApp, chunks: tuple[bytes, ...])
benchmarks/multipart_benchmark.py:162
↓ 2 callers
Function
get_identity
()
tests/test_testclient.py:97
↓ 2 callers
Function
get_name
(endpoint: Callable[..., Any])
starlette/routing.py:89
↓ 2 callers
Method
get_schema
(self, routes: list[BaseRoute])
starlette/schemas.py:132
next →
1–100 of 1,516, ranked by callers