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
↓ 2 callers
Method
delete_cookie
( self, key: str, path: str = "/", domain: str | None = None, secure:
starlette/responses.py:137
↓ 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:98
↓ 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
↓ 2 callers
Function
http_scope
(method: str, headers: list[tuple[bytes, bytes]])
benchmarks/json_benchmark.py:74
↓ 2 callers
Method
is_allowed_origin
(self, origin: str)
starlette/middleware/cors.py:93
↓ 2 callers
Method
is_disconnected
(self)
starlette/requests.py:332
↓ 2 callers
Method
iter_json
(self)
starlette/websockets.py:164
↓ 2 callers
Function
iterate_in_threadpool
( iterator: Iterable[T], )
starlette/concurrency.py:51
↓ 2 callers
Method
lookup_path
(self, path: str)
starlette/staticfiles.py:160
↓ 2 callers
Function
make_body
(case: BenchmarkCase)
benchmarks/multipart_benchmark.py:147
↓ 2 callers
Function
make_chunks
(body: bytes, chunk_size: int | None)
benchmarks/multipart_benchmark.py:156
↓ 2 callers
Function
make_fields
(case: BenchmarkCase)
benchmarks/urlencoded_benchmark.py:76
↓ 2 callers
Function
make_json_payload
Build a deterministic, valid JSON document of exactly ``size`` bytes.
benchmarks/gzip_benchmark.py:150
↓ 2 callers
Method
mutablecopy
(self)
starlette/datastructures.py:557
↓ 2 callers
Function
numbers
(minimum: int, maximum: int)
tests/test_responses.py:108
↓ 2 callers
Method
parse
(self)
starlette/formparsers.py:235
↓ 2 callers
Method
pop
(self, key: str, *args: typing.Any)
starlette/middleware/sessions.py:118
↓ 2 callers
Method
popitem
(self)
starlette/datastructures.py:350
↓ 2 callers
Function
receive
()
tests/middleware/test_body_limit.py:80
↓ 2 callers
Method
receive
(self)
starlette/requests.py:232
↓ 2 callers
Function
run_asgi
(app: ASGIApp, scope: Scope, receive: Receive = unreadable_receive)
benchmarks/_utils.py:34
↓ 2 callers
Method
send
(self, message: Message, send: Send, request_headers: Headers)
starlette/middleware/cors.py:151
↓ 2 callers
Function
send_length
(send: Send, length: int)
benchmarks/request_benchmark.py:33
↓ 2 callers
Function
send_result
(send: Send, status: int, body: bytes)
benchmarks/_utils.py:29
↓ 2 callers
Method
set_stat_headers
(self, stat_result: os.stat_result)
starlette/responses.py:336
↓ 2 callers
Method
setlist
(self, key: Any, values: list[Any])
starlette/datastructures.py:371
↓ 2 callers
Function
stream
()
tests/test_formparsers.py:1050
↓ 2 callers
Function
stream_indefinitely
()
tests/test_responses.py:799
↓ 2 callers
Method
url_path_for
(self, name: str, /, **path_params: Any)
starlette/routing.py:644
↓ 2 callers
Function
wrap_app_handling_exceptions
(app: ASGIApp, conn: Request | WebSocket)
starlette/_exception_handler.py:23
↓ 1 callers
Method
OpenAPIResponse
(self, request: Request)
starlette/schemas.py:122
↓ 1 callers
Method
__await__
(self)
starlette/endpoints.py:30
↓ 1 callers
Method
__enter__
(self)
starlette/testclient.py:557
↓ 1 callers
Method
__init__
(self, session: WebSocketTestSession)
starlette/testclient.py:81
↓ 1 callers
Method
__init__
( self, *, directory: PathLike | None = None, packages: list[str | tuple[str,
starlette/staticfiles.py:41
↓ 1 callers
Method
__init__
( self, directory: str | PathLike[str] | Sequence[str | PathLike[str]], *, con
starlette/templating.py:69
↓ 1 callers
Method
__init__
(self, host: str, app: ASGIApp, name: str | None = None)
starlette/routing.py:476
↓ 1 callers
Method
__init__
( self, scope: Scope, receive: Receive, send: Send, )
tests/middleware/test_base.py:59
↓ 1 callers
Method
__setattr__
(self, key: Any, value: Any)
starlette/datastructures.py:691
↓ 1 callers
Method
_compress_body
(self, body: bytes, more_body: bool)
starlette/middleware/gzip.py:219
↓ 1 callers
Method
_drain_and_validate
(self)
benchmarks/gzip_benchmark.py:82
↓ 1 callers
Function
_generate_faulty_stream
()
tests/middleware/test_base.py:53
↓ 1 callers
Function
_get_content_length
(scope: Scope)
starlette/middleware/body_limit.py:125
↓ 1 callers
Method
_get_form
( self, *, max_files: int | float = 1000, max_fields: int | float = 1000,
starlette/requests.py:270
↓ 1 callers
Function
_get_gzip_capacity_limiter
Return the capacity limiter used for worker-thread GZip compression.
starlette/middleware/gzip.py:33
↓ 1 callers
Function
_is_asgi3
(app: ASGI2App | ASGI3App)
starlette/testclient.py:56
↓ 1 callers
Function
_lookup_exception_handler
(exc_handlers: ExceptionHandlers, exc: Exception)
starlette/_exception_handler.py:16
↓ 1 callers
Method
_parse_range_header
(cls, http_range: str, file_size: int)
starlette/responses.py:503
↓ 1 callers
Method
_parse_ranges
(cls, range_: str, file_size: int)
starlette/responses.py:545
↓ 1 callers
Method
_perform_cast
( self, key: str, value: Any, cast: Callable[[Any], Any] | None = None, )
starlette/config.py:125
↓ 1 callers
Method
_read_file
(self, file_name: str | Path, encoding: str)
starlette/config.py:111
↓ 1 callers
Method
_remove_converter
Remove the converter from the path. For example, a route like this: Route("/users/{id:int}", endpoint=get_user, methods=[
starlette/schemas.py:89
↓ 1 callers
Method
_run_until_tiny_response
(self)
benchmarks/gzip_benchmark.py:74
↓ 1 callers
Method
_setup_env_defaults
(self, env: jinja2.Environment)
starlette/templating.py:101
↓ 1 callers
Method
_should_use_range
(self, http_if_range: str)
starlette/responses.py:497
↓ 1 callers
Method
_will_roll
(self, size_to_add: int)
starlette/datastructures.py:458
↓ 1 callers
Function
_wrap_gen_lifespan_context
( lifespan_context: Callable[[Any], Generator[Any, Any, Any]], )
starlette/routing.py:560
↓ 1 callers
Method
add_exception_handler
( self, exc_class_or_status_code: int | type[Exception], handler: ExceptionHandler,
starlette/middleware/exceptions.py:36
↓ 1 callers
Method
add_route
( self, path: str, endpoint: Callable[[Request], Awaitable[Response] | Response],
starlette/routing.py:748
↓ 1 callers
Method
add_task
(self, func: Callable[P, Any], *args: P.args, **kwargs: P.kwargs)
starlette/background.py:30
↓ 1 callers
Method
allow_explicit_origin
(headers: MutableHeaders, origin: str)
starlette/middleware/cors.py:175
↓ 1 callers
Function
app
(scope: Scope, receive: Receive, send: Send)
tests/test_websockets.py:19
↓ 1 callers
Method
append
Append a header, preserving any duplicate entries.
starlette/datastructures.py:665
↓ 1 callers
Method
apply_compression
Apply compression on the response body. If more_body is False, the compression stream is finalized. Compression resources are only al
starlette/middleware/gzip.py:179
↓ 1 callers
Method
authenticate
(self, conn: HTTPConnection)
starlette/authentication.py:106
↓ 1 callers
Function
build_router
(groups: int)
benchmarks/routing_benchmark.py:16
↓ 1 callers
Method
check_config
Perform a one-off configuration check that StaticFiles is actually pointed at a directory, so that we can raise loud errors rather th
starlette/staticfiles.py:195
↓ 1 callers
Function
chunks
()
tests/test_testclient.py:291
↓ 1 callers
Method
clear
(self)
starlette/middleware/sessions.py:114
↓ 1 callers
Method
close
(self)
starlette/datastructures.py:488
↓ 1 callers
Method
close
(self)
starlette/datastructures.py:510
↓ 1 callers
Method
close
(self)
starlette/_utils.py:77
↓ 1 callers
Function
content
()
tests/test_websockets.py:332
↓ 1 callers
Function
cookie_parser
This function parses a ``Cookie`` HTTP header into a dict of key/value pairs. It attempts to mimic browser cookie parsing behavior: browsers
starlette/requests.py:47
↓ 1 callers
Function
current_task
()
tests/test_testclient.py:36
↓ 1 callers
Function
dispatch
(runner: ASGIRunner, app: ASGIApp)
benchmarks/response_benchmark.py:66
↓ 1 callers
Function
dispatch
(runner: ASGIRunner, app: ASGIApp)
benchmarks/streaming_response_benchmark.py:67
↓ 1 callers
Function
dispatch
(runner: ASGIRunner, app: FileApp, case: BenchmarkCase)
benchmarks/file_response_benchmark.py:63
↓ 1 callers
Function
dispatch
(runner: ASGIRunner, app: ASGIApp, chunks: tuple[bytes, ...])
benchmarks/request_benchmark.py:91
↓ 1 callers
Function
dispatch
(runner: ASGIRunner, case: BenchmarkCase)
benchmarks/websocket_benchmark.py:99
↓ 1 callers
Method
dispatch
(self)
starlette/endpoints.py:33
↓ 1 callers
Method
dispatch
(self)
starlette/endpoints.py:71
↓ 1 callers
Method
dispatch
(self)
tests/middleware/test_base.py:70
↓ 1 callers
Function
dispatch_request
(runner: ASGIRunner, chunks: tuple[bytes, ...])
benchmarks/json_benchmark.py:97
↓ 1 callers
Function
dispatch_response
(runner: ASGIRunner, app: ASGIApp)
benchmarks/json_benchmark.py:102
↓ 1 callers
Method
drain_and_validate
(self)
benchmarks/gzip_benchmark.py:79
↓ 1 callers
Function
endpoint
(request: Request)
tests/test_routing.py:1259
↓ 1 callers
Method
error_response
(self, request: Request, exc: Exception)
starlette/middleware/errors.py:258
↓ 1 callers
Function
field_part
(index: int, size: int)
benchmarks/multipart_benchmark.py:117
↓ 1 callers
Function
file_part
(index: int, size: int, boundary_like: bool)
benchmarks/multipart_benchmark.py:130
↓ 1 callers
Method
file_response
( self, full_path: PathLike, stat_result: os.stat_result, scope: Scope,
starlette/staticfiles.py:181
↓ 1 callers
Method
format_line
(self, index: int, line: str, frame_lineno: int, frame_index: int)
starlette/middleware/errors.py:188
↓ 1 callers
Function
format_size
(size: int)
benchmarks/request_benchmark.py:63
↓ 1 callers
Method
generate_frame_html
(self, frame: inspect.FrameInfo, is_collapsed: bool)
starlette/middleware/errors.py:199
↓ 1 callers
Method
generate_html
(self, exc: Exception, limit: int = 7)
starlette/middleware/errors.py:224
↓ 1 callers
Method
generate_multipart
r""" Multipart response headers generator. ``` --{boundary}\r\n Content-Type: {content_type}\r\n Content-Rang
starlette/responses.py:573
↓ 1 callers
Method
generate_plain_text
(self, exc: Exception)
starlette/middleware/errors.py:246
← previous
next →
101–200 of 1,591, ranked by callers