MCPcopy Create free account

hub / github.com/Kludex/starlette / functions

Functions1,591 in github.com/Kludex/starlette

↓ 2 callersMethoddelete_cookie
( self, key: str, path: str = "/", domain: str | None = None, secure:
starlette/responses.py:137
↓ 2 callersFunctiondispatch
(runner: ASGIRunner, app: FormApp, chunks: tuple[bytes, ...])
benchmarks/urlencoded_benchmark.py:105
↓ 2 callersFunctiondispatch
(runner: ASGIRunner, app: ASGIApp, chunks: tuple[bytes, ...])
benchmarks/multipart_benchmark.py:162
↓ 2 callersFunctionget_identity
()
tests/test_testclient.py:98
↓ 2 callersFunctionget_name
(endpoint: Callable[..., Any])
starlette/routing.py:89
↓ 2 callersMethodget_schema
(self, routes: list[BaseRoute])
starlette/schemas.py:132
↓ 2 callersFunctionhttp_scope
(method: str, headers: list[tuple[bytes, bytes]])
benchmarks/json_benchmark.py:74
↓ 2 callersMethodis_allowed_origin
(self, origin: str)
starlette/middleware/cors.py:93
↓ 2 callersMethodis_disconnected
(self)
starlette/requests.py:332
↓ 2 callersMethoditer_json
(self)
starlette/websockets.py:164
↓ 2 callersFunctioniterate_in_threadpool
( iterator: Iterable[T], )
starlette/concurrency.py:51
↓ 2 callersMethodlookup_path
(self, path: str)
starlette/staticfiles.py:160
↓ 2 callersFunctionmake_body
(case: BenchmarkCase)
benchmarks/multipart_benchmark.py:147
↓ 2 callersFunctionmake_chunks
(body: bytes, chunk_size: int | None)
benchmarks/multipart_benchmark.py:156
↓ 2 callersFunctionmake_fields
(case: BenchmarkCase)
benchmarks/urlencoded_benchmark.py:76
↓ 2 callersFunctionmake_json_payload
Build a deterministic, valid JSON document of exactly ``size`` bytes.
benchmarks/gzip_benchmark.py:150
↓ 2 callersMethodmutablecopy
(self)
starlette/datastructures.py:557
↓ 2 callersFunctionnumbers
(minimum: int, maximum: int)
tests/test_responses.py:108
↓ 2 callersMethodparse
(self)
starlette/formparsers.py:235
↓ 2 callersMethodpop
(self, key: str, *args: typing.Any)
starlette/middleware/sessions.py:118
↓ 2 callersMethodpopitem
(self)
starlette/datastructures.py:350
↓ 2 callersFunctionreceive
()
tests/middleware/test_body_limit.py:80
↓ 2 callersMethodreceive
(self)
starlette/requests.py:232
↓ 2 callersFunctionrun_asgi
(app: ASGIApp, scope: Scope, receive: Receive = unreadable_receive)
benchmarks/_utils.py:34
↓ 2 callersMethodsend
(self, message: Message, send: Send, request_headers: Headers)
starlette/middleware/cors.py:151
↓ 2 callersFunctionsend_length
(send: Send, length: int)
benchmarks/request_benchmark.py:33
↓ 2 callersFunctionsend_result
(send: Send, status: int, body: bytes)
benchmarks/_utils.py:29
↓ 2 callersMethodset_stat_headers
(self, stat_result: os.stat_result)
starlette/responses.py:336
↓ 2 callersMethodsetlist
(self, key: Any, values: list[Any])
starlette/datastructures.py:371
↓ 2 callersFunctionstream
()
tests/test_formparsers.py:1050
↓ 2 callersFunctionstream_indefinitely
()
tests/test_responses.py:799
↓ 2 callersMethodurl_path_for
(self, name: str, /, **path_params: Any)
starlette/routing.py:644
↓ 2 callersFunctionwrap_app_handling_exceptions
(app: ASGIApp, conn: Request | WebSocket)
starlette/_exception_handler.py:23
↓ 1 callersMethodOpenAPIResponse
(self, request: Request)
starlette/schemas.py:122
↓ 1 callersMethod__await__
(self)
starlette/endpoints.py:30
↓ 1 callersMethod__enter__
(self)
starlette/testclient.py:557
↓ 1 callersMethod__init__
(self, session: WebSocketTestSession)
starlette/testclient.py:81
↓ 1 callersMethod__init__
( self, *, directory: PathLike | None = None, packages: list[str | tuple[str,
starlette/staticfiles.py:41
↓ 1 callersMethod__init__
( self, directory: str | PathLike[str] | Sequence[str | PathLike[str]], *, con
starlette/templating.py:69
↓ 1 callersMethod__init__
(self, host: str, app: ASGIApp, name: str | None = None)
starlette/routing.py:476
↓ 1 callersMethod__init__
( self, scope: Scope, receive: Receive, send: Send, )
tests/middleware/test_base.py:59
↓ 1 callersMethod__setattr__
(self, key: Any, value: Any)
starlette/datastructures.py:691
↓ 1 callersMethod_compress_body
(self, body: bytes, more_body: bool)
starlette/middleware/gzip.py:219
↓ 1 callersMethod_drain_and_validate
(self)
benchmarks/gzip_benchmark.py:82
↓ 1 callersFunction_generate_faulty_stream
()
tests/middleware/test_base.py:53
↓ 1 callersFunction_get_content_length
(scope: Scope)
starlette/middleware/body_limit.py:125
↓ 1 callersMethod_get_form
( self, *, max_files: int | float = 1000, max_fields: int | float = 1000,
starlette/requests.py:270
↓ 1 callersFunction_get_gzip_capacity_limiter
Return the capacity limiter used for worker-thread GZip compression.
starlette/middleware/gzip.py:33
↓ 1 callersFunction_is_asgi3
(app: ASGI2App | ASGI3App)
starlette/testclient.py:56
↓ 1 callersFunction_lookup_exception_handler
(exc_handlers: ExceptionHandlers, exc: Exception)
starlette/_exception_handler.py:16
↓ 1 callersMethod_parse_range_header
(cls, http_range: str, file_size: int)
starlette/responses.py:503
↓ 1 callersMethod_parse_ranges
(cls, range_: str, file_size: int)
starlette/responses.py:545
↓ 1 callersMethod_perform_cast
( self, key: str, value: Any, cast: Callable[[Any], Any] | None = None, )
starlette/config.py:125
↓ 1 callersMethod_read_file
(self, file_name: str | Path, encoding: str)
starlette/config.py:111
↓ 1 callersMethod_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 callersMethod_run_until_tiny_response
(self)
benchmarks/gzip_benchmark.py:74
↓ 1 callersMethod_setup_env_defaults
(self, env: jinja2.Environment)
starlette/templating.py:101
↓ 1 callersMethod_should_use_range
(self, http_if_range: str)
starlette/responses.py:497
↓ 1 callersMethod_will_roll
(self, size_to_add: int)
starlette/datastructures.py:458
↓ 1 callersFunction_wrap_gen_lifespan_context
( lifespan_context: Callable[[Any], Generator[Any, Any, Any]], )
starlette/routing.py:560
↓ 1 callersMethodadd_exception_handler
( self, exc_class_or_status_code: int | type[Exception], handler: ExceptionHandler,
starlette/middleware/exceptions.py:36
↓ 1 callersMethodadd_route
( self, path: str, endpoint: Callable[[Request], Awaitable[Response] | Response],
starlette/routing.py:748
↓ 1 callersMethodadd_task
(self, func: Callable[P, Any], *args: P.args, **kwargs: P.kwargs)
starlette/background.py:30
↓ 1 callersMethodallow_explicit_origin
(headers: MutableHeaders, origin: str)
starlette/middleware/cors.py:175
↓ 1 callersFunctionapp
(scope: Scope, receive: Receive, send: Send)
tests/test_websockets.py:19
↓ 1 callersMethodappend
Append a header, preserving any duplicate entries.
starlette/datastructures.py:665
↓ 1 callersMethodapply_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 callersMethodauthenticate
(self, conn: HTTPConnection)
starlette/authentication.py:106
↓ 1 callersFunctionbuild_router
(groups: int)
benchmarks/routing_benchmark.py:16
↓ 1 callersMethodcheck_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 callersFunctionchunks
()
tests/test_testclient.py:291
↓ 1 callersMethodclear
(self)
starlette/middleware/sessions.py:114
↓ 1 callersMethodclose
(self)
starlette/datastructures.py:488
↓ 1 callersMethodclose
(self)
starlette/datastructures.py:510
↓ 1 callersMethodclose
(self)
starlette/_utils.py:77
↓ 1 callersFunctioncontent
()
tests/test_websockets.py:332
↓ 1 callersFunctioncookie_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 callersFunctioncurrent_task
()
tests/test_testclient.py:36
↓ 1 callersFunctiondispatch
(runner: ASGIRunner, app: ASGIApp)
benchmarks/response_benchmark.py:66
↓ 1 callersFunctiondispatch
(runner: ASGIRunner, app: ASGIApp)
benchmarks/streaming_response_benchmark.py:67
↓ 1 callersFunctiondispatch
(runner: ASGIRunner, app: FileApp, case: BenchmarkCase)
benchmarks/file_response_benchmark.py:63
↓ 1 callersFunctiondispatch
(runner: ASGIRunner, app: ASGIApp, chunks: tuple[bytes, ...])
benchmarks/request_benchmark.py:91
↓ 1 callersFunctiondispatch
(runner: ASGIRunner, case: BenchmarkCase)
benchmarks/websocket_benchmark.py:99
↓ 1 callersMethoddispatch
(self)
starlette/endpoints.py:33
↓ 1 callersMethoddispatch
(self)
starlette/endpoints.py:71
↓ 1 callersMethoddispatch
(self)
tests/middleware/test_base.py:70
↓ 1 callersFunctiondispatch_request
(runner: ASGIRunner, chunks: tuple[bytes, ...])
benchmarks/json_benchmark.py:97
↓ 1 callersFunctiondispatch_response
(runner: ASGIRunner, app: ASGIApp)
benchmarks/json_benchmark.py:102
↓ 1 callersMethoddrain_and_validate
(self)
benchmarks/gzip_benchmark.py:79
↓ 1 callersFunctionendpoint
(request: Request)
tests/test_routing.py:1259
↓ 1 callersMethoderror_response
(self, request: Request, exc: Exception)
starlette/middleware/errors.py:258
↓ 1 callersFunctionfield_part
(index: int, size: int)
benchmarks/multipart_benchmark.py:117
↓ 1 callersFunctionfile_part
(index: int, size: int, boundary_like: bool)
benchmarks/multipart_benchmark.py:130
↓ 1 callersMethodfile_response
( self, full_path: PathLike, stat_result: os.stat_result, scope: Scope,
starlette/staticfiles.py:181
↓ 1 callersMethodformat_line
(self, index: int, line: str, frame_lineno: int, frame_index: int)
starlette/middleware/errors.py:188
↓ 1 callersFunctionformat_size
(size: int)
benchmarks/request_benchmark.py:63
↓ 1 callersMethodgenerate_frame_html
(self, frame: inspect.FrameInfo, is_collapsed: bool)
starlette/middleware/errors.py:199
↓ 1 callersMethodgenerate_html
(self, exc: Exception, limit: int = 7)
starlette/middleware/errors.py:224
↓ 1 callersMethodgenerate_multipart
r""" Multipart response headers generator. ``` --{boundary}\r\n Content-Type: {content_type}\r\n Content-Rang
starlette/responses.py:573
↓ 1 callersMethodgenerate_plain_text
(self, exc: Exception)
starlette/middleware/errors.py:246
← previousnext →101–200 of 1,591, ranked by callers