MCPcopy Create free account

hub / github.com/Kludex/starlette / functions

Functions1,591 in github.com/Kludex/starlette

Method__init__
(self, code: int = 1000, reason: str | None = None)
starlette/websockets.py:21
Method__init__
(self, scope: Scope, receive: Receive, send: Send)
starlette/websockets.py:33
Method__init__
(self, code: int = 1000, reason: str | None = None)
starlette/websockets.py:197
Method__init__
( self, content: Any, status_code: int = 200, headers: Mapping[str, str] | Non
starlette/responses.py:189
Method__init__
( self, url: str | URL, status_code: int = 307, headers: Mapping[str, str] | N
starlette/responses.py:210
Method__init__
( self, content: ContentStream, status_code: int = 200, headers: Mapping[str,
starlette/responses.py:230
Method__init__
(self, content: str = "Malformed range header.")
starlette/responses.py:292
Method__init__
(self, max_size: int)
starlette/responses.py:297
Method__init__
( self, path: str | os.PathLike[str], status_code: int = 200, headers: Mapping
starlette/responses.py:305
Method__init__
(self, scope: Scope, receive: Receive, send: Send)
starlette/endpoints.py:18
Method__init__
(self, scope: Scope, receive: Receive, send: Send)
starlette/endpoints.py:62
Method__init__
(self, scope: Scope, receive: Receive | None = None)
starlette/requests.py:87
Method__init__
(self, scope: Scope, receive: Receive = empty_receive, send: Send = empty_send)
starlette/requests.py:218
Method__init__
(self, scopes: Sequence[str] | None = None)
starlette/authentication.py:111
Method__init__
(self, username: str)
starlette/authentication.py:130
Method__init__
( self, template: Any, context: dict[str, Any], status_code: int = 200,
starlette/templating.py:32
Method__init__
(self, name: str, path_params: dict[str, Any])
starlette/routing.py:36
Method__init__
( self, path: str, endpoint: Callable[..., Any], *, methods: Collectio
starlette/routing.py:207
Method__init__
( self, path: str, endpoint: Callable[..., Any], *, name: str | None =
starlette/routing.py:307
Method__init__
( self, path: str, app: ASGIApp | None = None, routes: Sequence[BaseRoute] | N
starlette/routing.py:373
Method__init__
(self, cm: AbstractContextManager[_T])
starlette/routing.py:545
Method__init__
(self, router: Router)
starlette/routing.py:573
Method__init__
( self, routes: Sequence[BaseRoute] | None = None, redirect_slashes: bool = True,
starlette/routing.py:587
Method__init__
Initializes the application. Parameters: debug: Boolean indicating if debug tracebacks should be returned on errors.
starlette/applications.py:23
Method__init__
(self, path: str, protocol: Literal["http", "websocket", ""] = "", host: str = "")
starlette/datastructures.py:201
Method__init__
(self, value: str)
starlette/datastructures.py:227
Method__init__
(self, value: str | Sequence[str])
starlette/datastructures.py:242
Method__init__
( self, *args: ImmutableMultiDict[_KeyType, _CovariantValueType] | Mapping[_KeyType, _
starlette/datastructures.py:272
Method__init__
( self, *args: ImmutableMultiDict[Any, Any] | Mapping[Any, Any] | list[tuple[Any, Any]] | str
starlette/datastructures.py:399
Method__init__
( self, file: BinaryIO, *, size: int | None = None, filename: str | No
starlette/datastructures.py:431
Method__init__
( self, *args: FormData | Mapping[str, str | UploadFile] | list[tuple[str, str | UploadFile]],
starlette/datastructures.py:503
Method__init__
( self, headers: Mapping[str, str] | None = None, raw: list[tuple[bytes, bytes]] | Non
starlette/datastructures.py:521
Method__init__
(self, state: dict[str, Any] | None = None)
starlette/datastructures.py:686
Method__init__
(self, aw: Awaitable[SupportsAsyncCloseType])
starlette/_utils.py:86
Method__init__
( self, app: ASGIApp, handler: ExceptionHandler | None = None, debug: bool = F
starlette/middleware/errors.py:139
Method__init__
(self, app: Callable[..., Any])
starlette/middleware/wsgi.py:79
Method__init__
(self, app: Callable[..., Any], scope: Scope)
starlette/middleware/wsgi.py:92
Method__init__
( self, app: ASGIApp, allow_origins: Collection[str] = (), allow_methods: Coll
starlette/middleware/cors.py:16
Method__init__
(self, scope: Scope, receive: Receive, send: Send)
starlette/middleware/base.py:29
Method__init__
(self, app: ASGIApp, dispatch: DispatchFunction | None = None)
starlette/middleware/base.py:97
Method__init__
( self, content: AsyncContentStream, status_code: int = 200, headers: Mapping[
starlette/middleware/base.py:215
Method__init__
( self, app: ASGIApp, handlers: Mapping[Any, ExceptionHandler] | None = None,
starlette/middleware/exceptions.py:19
Method__init__
(self, cls: _MiddlewareFactory[P], *args: P.args, **kwargs: P.kwargs)
starlette/middleware/__init__.py:22
Method__init__
( self, app: ASGIApp, backend: AuthenticationBackend, on_error: Callable[[HTTP
starlette/middleware/authentication.py:17
Method__init__
( self, app: ASGIApp, secret_key: str | Secret, session_cookie: str = "session
starlette/middleware/sessions.py:17
Method__init__
( self, app: ASGIApp, minimum_size: int = 500, compresslevel: int = 9,
starlette/middleware/gzip.py:46
Method__init__
( self, app: ASGIApp, minimum_size: int, *, exclude_content_types: tup
starlette/middleware/gzip.py:85
Method__init__
( self, app: ASGIApp, minimum_size: int, compresslevel: int = 9, *,
starlette/middleware/gzip.py:191
Method__init__
( self, app: ASGIApp, allowed_hosts: Sequence[str] | None = None, www_redirect
starlette/middleware/trustedhost.py:14
Method__init__
(self, app: ASGIApp)
starlette/middleware/httpsredirect.py:7
Method__init__
( self, app: ASGIApp, *, excluded_urls: str | Sequence[str] = (), trac
starlette/middleware/opentelemetry.py:32
Method__init__
(self)
starlette/middleware/body_limit.py:22
Method__init__
(self, app: ASGIApp, max_body_size: int)
starlette/middleware/body_limit.py:33
Method__init__
(self, app: ASGIApp, max_body_size: int)
starlette/middleware/body_limit.py:46
Method__init__
(self, app: ASGIApp)
tests/test_requests.py:700
Method__init__
(self)
tests/test_responses.py:137
Method__init__
(self, app: ASGIApp)
tests/test_applications.py:467
Method__init__
(self, app: ASGIApp)
tests/test_applications.py:476
Method__init__
(self, app: ASGIApp, arg: str)
tests/test_applications.py:511
Method__init__
(self, app: ASGIApp)
tests/test_testclient.py:186
Method__init__
(self, app: ASGIApp)
tests/test_routing.py:350
Method__init__
(self, app: ASGIApp)
tests/test_routing.py:873
Method__init__
(self, app: ASGIApp, name: str)
tests/test_routing.py:1017
Method__init__
(self, app: ASGIApp)
tests/test_routing.py:1073
Method__init__
(self, app: ASGIApp)
tests/middleware/test_body_limit.py:248
Method__init__
(self, app: ASGIApp)
tests/middleware/test_body_limit.py:323
Method__init__
(self, app: ASGIApp, foo: str, *, bar: int)
tests/middleware/test_middleware.py:16
Method__init__
(self, app: ASGIApp)
tests/middleware/test_base.py:208
Method__init__
(self, app: ASGIApp)
tests/middleware/test_base.py:424
Method__init__
(self, app: ASGIApp, version: int)
tests/middleware/test_base.py:1071
Method__init__
(self, app: ASGIApp)
tests/middleware/test_opentelemetry.py:310
Method__init__
(self, chunks: tuple[bytes, ...])
benchmarks/streaming_response_benchmark.py:33
Method__init__
(self, messages: tuple[Message, ...])
benchmarks/gzip_benchmark.py:47
Method__init__
(self, large_app: ASGIApp, tiny_app: ASGIApp, scope: Scope, payload: bytes)
benchmarks/gzip_benchmark.py:111
Method__init__
(self, content: list[dict[str, object]])
benchmarks/json_benchmark.py:59
Method__init__
(self, path: Path)
benchmarks/file_response_benchmark.py:36
Method__init__
(self, incoming: Message)
benchmarks/websocket_benchmark.py:71
Method__init__
(self, case: BenchmarkCase)
benchmarks/urlencoded_benchmark.py:54
Method__init__
(self, case: BenchmarkCase)
benchmarks/multipart_benchmark.py:72
Method__init__
(self, chunks: tuple[bytes, ...])
benchmarks/_utils.py:13
Method__init__
(self)
benchmarks/_utils.py:45
Method__ior__
(self, other: Mapping[str, str])
starlette/datastructures.py:630
Method__ior__
(self, other: typing.Any, /)
starlette/middleware/sessions.py:137
Method__iter__
(self)
starlette/config.py:37
Method__iter__
(self)
starlette/testclient.py:203
Method__iter__
(self)
starlette/requests.py:94
Method__iter__
(self)
starlette/datastructures.py:257
Method__iter__
(self)
starlette/datastructures.py:321
Method__iter__
(self)
starlette/datastructures.py:574
Method__iter__
(self)
starlette/datastructures.py:713
Method__iter__
(self)
starlette/middleware/__init__.py:27
Method__iter__
(self)
tests/test_concurrency.py:52
Method__len__
(self)
starlette/config.py:40
Method__len__
(self)
starlette/requests.py:97
Method__len__
(self)
starlette/datastructures.py:251
Method__len__
(self)
starlette/datastructures.py:324
Method__len__
(self)
starlette/datastructures.py:577
Method__len__
(self)
starlette/datastructures.py:716
Method__new__
(cls, path: str, protocol: Literal["http", "websocket", ""] = "", host: str = "")
starlette/datastructures.py:193
Method__or__
(self, other: Mapping[str, str])
starlette/datastructures.py:636
← previousnext →401–500 of 1,591, ranked by callers