MCPcopy Create free account

hub / github.com/Kludex/starlette / functions

Functions1,289 in github.com/Kludex/starlette

↓ 2 callersMethodpatch
( # type: ignore[override] self, url: httpx._types.URLTypes, *, content: http
starlette/testclient.py:601
↓ 2 callersFunctionrun_asgi
(app: ASGIApp, scope: Scope)
benchmarks/gzip_benchmark.py:68
↓ 2 callersMethodsend
(self, message: Message, send: Send, request_headers: Headers)
starlette/middleware/cors.py:156
↓ 2 callersMethodset_stat_headers
(self, stat_result: os.stat_result)
starlette/responses.py:330
↓ 2 callersMethodsetdefault
(self, key: str, default: typing.Any = None)
starlette/middleware/sessions.py:118
↓ 2 callersMethodsetlist
(self, key: Any, values: list[Any])
starlette/datastructures.py:355
↓ 2 callersFunctionstream_indefinitely
()
tests/test_responses.py:622
↓ 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:29
↓ 1 callersMethod__enter__
(self)
starlette/testclient.py:678
↓ 1 callersMethod__init__
(self, session: WebSocketTestSession)
starlette/testclient.py:88
↓ 1 callersMethod__init__
( self, *, directory: PathLike | None = None, packages: list[str | tuple[str,
starlette/staticfiles.py:40
↓ 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:460
↓ 1 callersMethod__init__
( self, scope: Scope, receive: Receive, send: Send, )
tests/middleware/test_base.py:63
↓ 1 callersMethod__setattr__
(self, key: Any, value: Any)
starlette/datastructures.py:678
↓ 1 callersMethod_compress_body
(self, body: bytes, more_body: bool)
starlette/middleware/gzip.py:177
↓ 1 callersMethod_drain_and_validate
(self)
benchmarks/gzip_benchmark.py:105
↓ 1 callersFunction_generate_faulty_stream
()
tests/middleware/test_base.py:57
↓ 1 callersMethod_get_form
( self, *, max_files: int | float = 1000, max_fields: int | float = 1000,
starlette/requests.py:268
↓ 1 callersFunction_get_gzip_capacity_limiter
Return the capacity limiter used for worker-thread GZip compression.
starlette/middleware/gzip.py:16
↓ 1 callersMethod_handle_multiple_ranges
( self, send: Send, ranges: list[tuple[int, int]], file_size: int, sen
starlette/responses.py:417
↓ 1 callersMethod_handle_simple
(self, send: Send, send_header_only: bool, send_pathsend: bool)
starlette/responses.py:384
↓ 1 callersMethod_handle_single_range
( self, send: Send, start: int, end: int, file_size: int, send_header_only: bool )
starlette/responses.py:398
↓ 1 callersFunction_is_asgi3
(app: ASGI2App | ASGI3App)
starlette/testclient.py:63
↓ 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:457
↓ 1 callersMethod_parse_ranges
(cls, range_: str, file_size: int)
starlette/responses.py:496
↓ 1 callersMethod_perform_cast
( self, key: str, value: Any, cast: Callable[[Any], Any] | None = None, )
starlette/config.py:123
↓ 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:97
↓ 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:453
↓ 1 callersMethod_will_roll
(self, size_to_add: int)
starlette/datastructures.py:442
↓ 1 callersFunction_wrap_gen_lifespan_context
( lifespan_context: Callable[[Any], Generator[Any, Any, Any]], )
starlette/routing.py:540
↓ 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:723
↓ 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:177
↓ 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:649
↓ 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:138
↓ 1 callersMethodauthenticate
(self, conn: HTTPConnection)
starlette/authentication.py:106
↓ 1 callersMethodbuild_middleware_stack
(self)
starlette/applications.py:57
↓ 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:189
↓ 1 callersMethodclear
(self)
starlette/middleware/sessions.py:110
↓ 1 callersMethodclose
(self, code: int = 1000, reason: str | None = None)
starlette/testclient.py:181
↓ 1 callersMethodclose
(self)
starlette/datastructures.py:472
↓ 1 callersMethodclose
(self)
starlette/datastructures.py:494
↓ 1 callersMethodclose
(self)
starlette/_utils.py:58
↓ 1 callersMethodclose
(self)
benchmarks/gzip_benchmark.py:64
↓ 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:46
↓ 1 callersFunctioncurrent_task
()
tests/test_testclient.py:35
↓ 1 callersMethoddebug_response
(self, request: Request, exc: Exception)
starlette/middleware/errors.py:249
↓ 1 callersMethoddelete_cookie
( self, key: str, path: str = "/", domain: str | None = None, secure:
starlette/responses.py:134
↓ 1 callersMethoddispatch
(self)
starlette/endpoints.py:32
↓ 1 callersMethoddispatch
(self)
starlette/endpoints.py:70
↓ 1 callersMethoddispatch
(self)
tests/middleware/test_base.py:74
↓ 1 callersMethoddrain_and_validate
(self)
benchmarks/gzip_benchmark.py:102
↓ 1 callersFunctionendpoint
(request: Request)
tests/test_concurrency.py:39
↓ 1 callersMethoderror_response
(self, request: Request, exc: Exception)
starlette/middleware/errors.py:258
↓ 1 callersMethodfile_response
( self, full_path: PathLike, stat_result: os.stat_result, scope: Scope,
starlette/staticfiles.py:175
↓ 1 callersMethodformat_line
(self, index: int, line: str, frame_lineno: int, frame_index: int)
starlette/middleware/errors.py:188
↓ 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:524
↓ 1 callersMethodgenerate_plain_text
(self, exc: Exception)
starlette/middleware/errors.py:246
↓ 1 callersFunctiongenerator
(bytes: bytes, count: int)
tests/middleware/test_gzip.py:76
↓ 1 callersMethodget
responses: 200: description: A list of organisations. examples: [{"name": "Foo Corp."}, {"nam
tests/test_schemas.py:52
↓ 1 callersFunctionget_app
()
tests/test_applications.py:483
↓ 1 callersMethodget_directories
Given `directory` and `packages` arguments, return a list of all the directories that should be used for serving static files from.
starlette/staticfiles.py:58
↓ 1 callersMethodget_endpoints
Given the routes, yields the following information: - path eg: /users/ - http_method one of 'get', '
starlette/schemas.py:40
↓ 1 callersFunctionget_middleware_factory
()
tests/test_applications.py:539
↓ 1 callersMethodget_response
Returns an HTTP response, given the incoming path, method and request headers.
starlette/staticfiles.py:109
↓ 1 callersMethodget_schema
(self, routes: list[BaseRoute])
starlette/schemas.py:37
↓ 1 callersMethodget_schema
(self, routes: list[BaseRoute])
starlette/schemas.py:132
↓ 1 callersMethodhandle
(self, scope: Scope, receive: Receive, send: Send)
starlette/routing.py:173
↓ 1 callersMethodhandle
(self, scope: Scope, receive: Receive, send: Send)
starlette/routing.py:509
↓ 1 callersMethodinclude_query_params
(self, **kwargs: Any)
starlette/datastructures.py:143
↓ 1 callersMethodis_not_modified
Given the request and response headers, return `True` if an HTTP "Not Modified" response could be returned instead.
starlette/staticfiles.py:205
↓ 1 callersMethoditer_bytes
(self)
starlette/websockets.py:151
↓ 1 callersMethoditer_text
(self)
starlette/websockets.py:144
↓ 1 callersMethodkeys
(self)
starlette/datastructures.py:287
↓ 1 callersMethodlifespan
Handle ASGI lifespan messages, which allows us to manage application startup and shutdown events.
starlette/routing.py:629
↓ 1 callersFunctionmake_app_max_parts
(max_files: int = 1000, max_fields: int = 1000, max_part_size: int = 1024 * 1024)
tests/test_formparsers.py:128
↓ 1 callersFunctionmake_bypass_messages
(case: BypassCase)
benchmarks/gzip_benchmark.py:231
↓ 1 callersFunctionmake_payload
(kind: PayloadKind, size: int)
benchmarks/gzip_benchmark.py:221
↓ 1 callersFunctionmake_text_payload
(size: int)
benchmarks/gzip_benchmark.py:212
↓ 1 callersMethodmark_accessed
(self)
starlette/middleware/sessions.py:95
↓ 1 callersMethodmatches
(self, scope: Scope)
starlette/routing.py:167
↓ 1 callersMethodmatches
(self, scope: Scope)
starlette/routing.py:471
↓ 1 callersFunctionmodifying_middleware
(app: ASGIApp)
tests/middleware/test_base.py:1002
↓ 1 callersMethodon_connect
Override to handle an incoming websocket connection
starlette/endpoints.py:119
↓ 1 callersMethodon_disconnect
Override to handle a disconnecting websocket
starlette/endpoints.py:126
↓ 1 callersMethodon_receive
Override to handle an incoming websocket message
starlette/endpoints.py:123
↓ 1 callersMethodparse
(self)
starlette/formparsers.py:247
↓ 1 callersMethodparse_docstring
Given a function, parse the docstring as YAML and return a dictionary of info.
starlette/schemas.py:98
← previousnext →101–200 of 1,289, ranked by callers