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
Function
test_hidden_password
()
tests/test_datastructures.py:98
Function
test_host_named_repr
()
tests/test_routing.py:1153
Function
test_host_repr
()
tests/test_routing.py:1140
Function
test_host_reverse_urls
()
tests/test_routing.py:552
Function
test_host_routing
(test_client_factory: TestClientFactory)
tests/test_routing.py:470
Function
test_host_routing_ignores_port
(host: str, test_client_factory: TestClientFactory)
tests/test_routing.py:524
Function
test_host_routing_ip_literals
(test_client_factory: TestClientFactory)
tests/test_routing.py:530
Function
test_host_routing_is_case_insensitive
(test_client_factory: TestClientFactory)
tests/test_routing.py:1258
Function
test_host_routing_rejects_invalid_hosts
(test_client_factory: TestClientFactory, host: str)
tests/test_routing.py:517
Function
test_http_endpoint_allow_header_omits_head_without_get
(test_client_factory: TestClientFactory)
tests/test_endpoints.py:110
Function
test_http_endpoint_does_not_dispatch_non_verb_method
(test_client_factory: TestClientFactory)
tests/test_endpoints.py:93
Function
test_http_endpoint_route
(client: TestClient)
tests/test_endpoints.py:36
Function
test_http_endpoint_route_method
(client: TestClient)
tests/test_endpoints.py:48
Function
test_http_endpoint_route_path_params
(client: TestClient)
tests/test_endpoints.py:42
Function
test_http_endpoint_route_query_method
(client: TestClient)
tests/test_endpoints.py:56
Function
test_http_endpoint_supports_early_hints
()
tests/test_endpoints.py:63
Function
test_http_exception_does_not_use_threadpool
Verify that handling HTTPException does not invoke run_in_threadpool, confirming the handler correctly runs in the main async context.
tests/test_exceptions.py:202
Function
test_http_repr
()
tests/test_exceptions.py:163
Function
test_http_span_extracts_remote_parent
( test_client_factory: TestClientFactory, tracer_provider: tuple[TracerProvider, InMemorySpanExporter]
tests/middleware/test_opentelemetry.py:417
Function
test_http_span_handles_optional_scope_values
( tracer_provider: tuple[TracerProvider, InMemorySpanExporter], )
tests/middleware/test_opentelemetry.py:492
Function
test_http_span_omits_route_for_custom_route
( test_client_factory: TestClientFactory, tracer_provider: tuple[TracerProvider, InMemorySpanExporter]
tests/middleware/test_opentelemetry.py:394
Function
test_http_span_omits_route_for_hosted_raw_asgi_app
( test_client_factory: TestClientFactory, tracer_provider: tuple[TracerProvider, InMemorySpanExporter]
tests/middleware/test_opentelemetry.py:378
Function
test_http_span_records_error_response
( test_client_factory: TestClientFactory, tracer_provider: tuple[TracerProvider, InMemorySpanExporter]
tests/middleware/test_opentelemetry.py:458
Function
test_http_span_records_server_error
( test_client_factory: TestClientFactory, tracer_provider: tuple[TracerProvider, InMemorySpanExporter]
tests/middleware/test_opentelemetry.py:437
Function
test_http_span_resolves_host_route
( test_client_factory: TestClientFactory, tracer_provider: tuple[TracerProvider, InMemorySpanExporter]
tests/middleware/test_opentelemetry.py:362
Function
test_http_span_uses_mount_path_for_raw_asgi_app
( test_client_factory: TestClientFactory, tracer_provider: tuple[TracerProvider, InMemorySpanExporter]
tests/middleware/test_opentelemetry.py:346
Function
test_http_span_uses_mount_path_when_child_does_not_resolve
( test_client_factory: TestClientFactory, tracer_provider: tuple[TracerProvider, InMemorySpanExporter]
tests/middleware/test_opentelemetry.py:330
Function
test_http_span_uses_nested_route
( test_client_factory: TestClientFactory, tracer_provider: tuple[TracerProvider, InMemorySpanExporter]
tests/middleware/test_opentelemetry.py:216
Function
test_http_span_uses_route_and_semantic_attributes
( test_client_factory: TestClientFactory, tracer_provider: tuple[TracerProvider, InMemorySpanExporter]
tests/middleware/test_opentelemetry.py:186
Function
test_http_span_without_starlette_app
( test_client_factory: TestClientFactory, tracer_provider: tuple[TracerProvider, InMemorySpanExporter]
tests/middleware/test_opentelemetry.py:476
Function
test_http_str
()
tests/test_exceptions.py:157
Function
test_https_redirect_middleware
(test_client_factory: TestClientFactory)
tests/middleware/test_https_redirect.py:15
Function
test_https_redirect_middleware_without_server
(test_client_factory: TestClientFactory, host: str)
tests/middleware/test_https_redirect.py:68
Function
test_incomplete_trailers
(test_client_factory: TestClientFactory, partial: bool)
tests/test_testclient.py:749
Function
test_instrumentation_uses_actual_route_match_once
( test_client_factory: TestClientFactory, tracer_provider: tuple[TracerProvider, InMemorySpanExporter]
tests/middleware/test_opentelemetry.py:281
Function
test_invalid_decorator_usage
()
tests/test_authentication.py:205
Function
test_invalid_session_cookie
(test_client_factory: TestClientFactory)
tests/middleware/test_session.py:185
Function
test_invalid_trailer_sequence
(test_client_factory: TestClientFactory, messages: list[Message], error: str)
tests/test_testclient.py:725
Function
test_ipv6_base_url
( test_client_factory: TestClientFactory, base_url: str, server: list[str | int], host: str )
tests/test_testclient.py:663
Function
test_iterate_in_threadpool
()
tests/test_concurrency.py:50
Function
test_json_none_response
(test_client_factory: TestClientFactory)
tests/test_responses.py:49
Function
test_json_response
(asgi_runner: ASGIRunner, benchmark: BenchmarkFixture, payload: JSONCase)
benchmarks/json_benchmark.py:135
Function
test_lifespan_app_subclass
()
tests/test_applications.py:552
Function
test_lifespan_state_async_cm
(test_client_factory: TestClientFactory)
tests/test_routing.py:718
Function
test_lifespan_state_unsupported
(test_client_factory: TestClientFactory)
tests/test_routing.py:699
Function
test_limit_exceeded_after_response_started_is_raised
()
tests/middleware/test_body_limit.py:145
Function
test_max_fields_is_customizable_high
(test_client_factory: TestClientFactory)
tests/test_formparsers.py:947
Function
test_max_fields_is_customizable_low_raises
( app: ASGIApp, expectation: AbstractContextManager[Exception], test_client_factory: TestClientFac
tests/test_formparsers.py:897
Function
test_max_files_is_customizable_low_raises
( app: ASGIApp, expectation: AbstractContextManager[Exception], test_client_factory: TestClientFac
tests/test_formparsers.py:927
Function
test_max_part_size_exceeds_custom_limit
( app: ASGIApp, expectation: AbstractContextManager[Exception], test_client_factory: TestClientFac
tests/test_formparsers.py:1018
Function
test_max_part_size_exceeds_limit
( app: ASGIApp, expectation: AbstractContextManager[Exception], test_client_factory: TestClientFac
tests/test_formparsers.py:978
Function
test_merge_url
(test_client_factory: TestClientFactory)
tests/test_testclient.py:635
Function
test_middleware
(test_client_factory: TestClientFactory)
tests/test_applications.py:281
Function
test_middleware_args
(test_client_factory: TestClientFactory)
tests/test_applications.py:507
Function
test_middleware_factory
(test_client_factory: TestClientFactory)
tests/test_applications.py:529
Function
test_middleware_iter
()
tests/middleware/test_middleware.py:30
Function
test_middleware_repr
()
tests/middleware/test_middleware.py:25
Function
test_middleware_stack_init
(test_client_factory: TestClientFactory)
tests/test_applications.py:465
Function
test_minimal_response_dispatch
( asgi_runner: ASGIRunner, benchmark: BenchmarkFixture, case: BenchmarkCase, )
benchmarks/response_benchmark.py:79
Function
test_missing_boundary_parameter
( app: ASGIApp, expectation: AbstractContextManager[Exception], test_client_factory: TestClientFac
tests/test_formparsers.py:676
Function
test_missing_env_file_raises
(tmpdir: Path)
tests/test_config.py:104
Function
test_missing_name_parameter_on_content_disposition
( app: ASGIApp, expectation: AbstractContextManager[Exception], test_client_factory: TestClientFac
tests/test_formparsers.py:755
Function
test_mount_asgi_app_with_middleware_url_path_for
Mounted ASGI apps do not work with url path for, middleware does not change this
tests/test_routing.py:968
Function
test_mount_at_root
(test_client_factory: TestClientFactory)
tests/test_routing.py:435
Function
test_mount_can_override_application_limit
(test_client_factory: TestClientFactory)
tests/middleware/test_body_limit.py:295
Function
test_mount_named_repr
()
tests/test_routing.py:1128
Function
test_mount_repr
()
tests/test_routing.py:1117
Function
test_mount_routes_with_middleware_url_path_for
Checks that url_path_for still works with mounted routes with Middleware
tests/test_routing.py:963
Function
test_mount_urls
(test_client_factory: TestClientFactory)
tests/test_routing.py:407
Function
test_mounted_middleware_does_not_catch_exception
( test_client_factory: Callable[..., TestClient], )
tests/test_routing.py:1009
Function
test_mounted_route
(client: TestClient)
tests/test_applications.py:192
Function
test_mounted_route_path_params
(client: TestClient)
tests/test_applications.py:198
Function
test_mounted_starlette_app_does_not_create_duplicate_span
( test_client_factory: TestClientFactory, tracer_provider: tuple[TracerProvider, InMemorySpanExporter]
tests/middleware/test_opentelemetry.py:232
Function
test_multi_items
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_formparsers.py:260
Function
test_multi_tasks_failure_avoids_next_execution
( test_client_factory: TestClientFactory, )
tests/test_background.py:68
Function
test_multidict
()
tests/test_datastructures.py:549
Function
test_multipart
(asgi_runner: ASGIRunner, benchmark: BenchmarkFixture, case: BenchmarkCase)
benchmarks/multipart_benchmark.py:187
Function
test_multipart_boundary_exceeds_limit
( app: ASGIApp, expectation: AbstractContextManager[Exception], test_client_factory: TestClientFac
tests/test_formparsers.py:704
Function
test_multipart_closes_tempfile_on_oserror
Temporary files must be closed when an OSError (e.g. disk full) is raised during parsing.
tests/test_formparsers.py:1074
Function
test_multipart_closes_tempfile_on_stream_error
()
tests/test_formparsers.py:1049
Function
test_multipart_file_counts_towards_limit
(test_client_factory: TestClientFactory)
tests/middleware/test_body_limit.py:357
Function
test_multipart_headers_exceed_limit
( app: ASGIApp, expectation: AbstractContextManager[Exception], test_client_factory: TestClientFac
tests/test_formparsers.py:728
Function
test_multipart_multi_field_app_reads_body
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_formparsers.py:464
Function
test_multipart_request_data
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_formparsers.py:153
Function
test_multipart_request_decodes_charset
( charset: str, value: bytes, expected: str, test_client_factory: TestClientFactory )
tests/test_formparsers.py:626
Function
test_multipart_request_files
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_formparsers.py:159
Function
test_multipart_request_files_with_content_type
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_formparsers.py:177
Function
test_multipart_request_large_file_rollover_in_background_thread
Test that Spooled file rollovers happen in background threads.
tests/test_formparsers.py:351
Function
test_multipart_request_mixed_files_and_data
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_formparsers.py:295
Function
test_multipart_request_multiple_files
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_formparsers.py:195
Function
test_multipart_request_multiple_files_with_headers
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_formparsers.py:223
Function
test_multipart_request_resolves_charset_once
(test_client_factory: TestClientFactory)
tests/test_formparsers.py:640
Function
test_multipart_request_with_charset_for_filename
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_formparsers.py:370
Function
test_multipart_request_with_encoded_value
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_formparsers.py:418
Function
test_multipart_request_without_charset_for_filename
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_formparsers.py:394
Function
test_multiple_cookie_headers
(test_client_factory: TestClientFactory)
tests/test_requests.py:476
Function
test_multiple_middlewares_stacked_client_disconnected
Tests for: - https://github.com/Kludex/starlette/issues/2516 - https://github.com/Kludex/starlette/pull/2687
tests/middleware/test_base.py:1061
Function
test_multiple_native_middlewares_do_not_create_duplicate_span
( test_client_factory: TestClientFactory, tracer_provider: tuple[TracerProvider, InMemorySpanExporter]
tests/middleware/test_opentelemetry.py:87
Function
test_multiple_tasks
(test_client_factory: TestClientFactory)
tests/test_background.py:47
Function
test_mutable_headers
()
tests/test_datastructures.py:328
← previous
next →
1,101–1,200 of 1,591, ranked by callers