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_route_converters
(client: TestClient)
tests/test_routing.py:230
Function
test_route_is_resolved_after_path_rewriting_middleware
( test_client_factory: TestClientFactory, tracer_provider: tuple[TracerProvider, InMemorySpanExporter]
tests/middleware/test_opentelemetry.py:303
Function
test_route_name
(endpoint: Callable[..., Response], expected_name: str)
tests/test_routing.py:868
Function
test_route_override_applies_when_middleware_defers_response_start
(test_client_factory: TestClientFactory)
tests/middleware/test_body_limit.py:56
Function
test_route_override_survives_shallow_scope_copy
(test_client_factory: TestClientFactory)
tests/middleware/test_body_limit.py:321
Function
test_route_repr
()
tests/test_routing.py:1102
Function
test_route_repr_without_methods
()
tests/test_routing.py:1107
Function
test_router
(client: TestClient)
tests/test_routing.py:185
Function
test_router_add_route
(client: TestClient)
tests/test_routing.py:315
Function
test_router_add_websocket_route
(client: TestClient)
tests/test_routing.py:338
Function
test_router_duplicate_path
(client: TestClient)
tests/test_routing.py:321
Function
test_router_limit
(test_client_factory: TestClientFactory)
tests/middleware/test_body_limit.py:313
Function
test_router_middleware
(test_client_factory: TestClientFactory)
tests/test_routing.py:348
Function
test_router_query_method
(client: TestClient)
tests/test_routing.py:327
Function
test_routes
()
tests/test_applications.py:288
Function
test_routing_method_not_allowed
(asgi_runner: ASGIRunner, benchmark: BenchmarkFixture)
benchmarks/routing_benchmark.py:64
Function
test_routing_miss
(asgi_runner: ASGIRunner, benchmark: BenchmarkFixture)
benchmarks/routing_benchmark.py:59
Function
test_routing_param_late
(asgi_runner: ASGIRunner, benchmark: BenchmarkFixture)
benchmarks/routing_benchmark.py:54
Function
test_routing_small_app
(asgi_runner: ASGIRunner, benchmark: BenchmarkFixture)
benchmarks/routing_benchmark.py:69
Function
test_routing_static_early
(asgi_runner: ASGIRunner, benchmark: BenchmarkFixture)
benchmarks/routing_benchmark.py:44
Function
test_routing_static_late
(asgi_runner: ASGIRunner, benchmark: BenchmarkFixture)
benchmarks/routing_benchmark.py:49
Function
test_run_background_tasks_even_if_client_disconnects
()
tests/middleware/test_base.py:265
Function
test_run_background_tasks_raise_exceptions
(test_client_factory: TestClientFactory)
tests/middleware/test_base.py:311
Function
test_run_context_manager_exit_even_if_client_disconnects
()
tests/middleware/test_base.py:411
Function
test_run_until_first_complete
()
tests/test_concurrency.py:16
Function
test_schema_endpoint
(test_client_factory: TestClientFactory)
tests/test_schemas.py:308
Function
test_schema_generation
()
tests/test_schemas.py:155
Function
test_secure_session
(test_client_factory: TestClientFactory)
tests/middleware/test_session.py:130
Function
test_send_before_accept
(test_client_factory: TestClientFactory)
tests/test_websockets.py:608
Function
test_send_denial_response
(test_client_factory: TestClientFactory)
tests/test_websockets.py:310
Function
test_send_denial_response_with_file_response
(test_client_factory: TestClientFactory, tmp_path: Path)
tests/test_websockets.py:346
Function
test_send_denial_response_with_streaming_response
(test_client_factory: TestClientFactory)
tests/test_websockets.py:326
Function
test_send_json_invalid_mode
(test_client_factory: TestClientFactory)
tests/test_websockets.py:551
Function
test_send_response_duplicate_start
(test_client_factory: TestClientFactory)
tests/test_websockets.py:409
Function
test_send_response_multi
(test_client_factory: TestClientFactory)
tests/test_websockets.py:364
Function
test_send_response_unsupported
(test_client_factory: TestClientFactory)
tests/test_websockets.py:388
Function
test_send_wrong_message_type
(test_client_factory: TestClientFactory)
tests/test_websockets.py:619
Function
test_session
(test_client_factory: TestClientFactory)
tests/middleware/test_session.py:46
Function
test_session_cookie
(test_client_factory: TestClientFactory)
tests/middleware/test_session.py:204
Function
test_session_cookie_subpath
(test_client_factory: TestClientFactory)
tests/middleware/test_session.py:167
Function
test_session_expires
(test_client_factory: TestClientFactory)
tests/middleware/test_session.py:106
Function
test_session_persists_mutations
( test_client_factory: TestClientFactory, path: str, data: dict[str, str] | None, expected: di
tests/middleware/test_session.py:351
Function
test_session_tracks_modification
()
tests/middleware/test_session.py:303
Function
test_session_zero_max_age
(test_client_factory: TestClientFactory)
tests/middleware/test_session.py:226
Function
test_set_cookie
(test_client_factory: TestClientFactory, monkeypatch: pytest.MonkeyPatch)
tests/test_responses.py:541
Function
test_set_cookie_only_on_modification
(test_client_factory: TestClientFactory)
tests/middleware/test_session.py:259
Function
test_set_cookie_path_none
(test_client_factory: TestClientFactory)
tests/test_responses.py:589
Function
test_set_cookie_raises_for_invalid_python_version
( test_client_factory: TestClientFactory, )
tests/test_responses.py:574
Function
test_set_cookie_samesite_none
(test_client_factory: TestClientFactory)
tests/test_responses.py:601
Function
test_standalone_route_does_not_match
( test_client_factory: Callable[..., TestClient], )
tests/test_routing.py:663
Function
test_standalone_route_matches
( test_client_factory: TestClientFactory, )
tests/test_routing.py:653
Function
test_standalone_ws_route_does_not_match
( test_client_factory: TestClientFactory, )
tests/test_routing.py:689
Function
test_standalone_ws_route_matches
( test_client_factory: TestClientFactory, )
tests/test_routing.py:679
Function
test_starlette_limit_applies_before_user_middleware
( test_client_factory: TestClientFactory, )
tests/middleware/test_body_limit.py:244
Function
test_state_data_across_multiple_middlewares
( test_client_factory: TestClientFactory, )
tests/middleware/test_base.py:119
Function
test_staticfiles
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:23
Function
test_staticfiles_200_with_etag_mismatch
( tmp_path: Path, test_client_factory: TestClientFactory, if_none_match: str, )
tests/test_staticfiles.py:253
Function
test_staticfiles_200_with_etag_mismatch_and_timestamp_match
( tmpdir: Path, test_client_factory: TestClientFactory )
tests/test_staticfiles.py:267
Function
test_staticfiles_304_with_etag_match
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:214
Function
test_staticfiles_304_with_if_none_match_wildcard
( tmp_path: Path, test_client_factory: TestClientFactory, method: str, if_none_match: str, )
tests/test_staticfiles.py:237
Function
test_staticfiles_304_with_last_modified_compare_last_req
( tmpdir: Path, test_client_factory: TestClientFactory )
tests/test_staticfiles.py:285
Function
test_staticfiles_access_file_as_dir_returns_404
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:482
Function
test_staticfiles_avoids_path_traversal
(tmp_path: Path)
tests/test_staticfiles.py:607
Function
test_staticfiles_cache_invalidation_for_deleted_file_html_mode
( tmpdir: Path, test_client_factory: TestClientFactory )
tests/test_staticfiles.py:406
Function
test_staticfiles_config_check_occurs_only_once
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:167
Function
test_staticfiles_configured_with_file_instead_of_directory
( tmpdir: Path, test_client_factory: TestClientFactory )
tests/test_staticfiles.py:153
Function
test_staticfiles_configured_with_missing_directory
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:144
Function
test_staticfiles_disallows_path_traversal_with_symlinks
(tmpdir: Path)
tests/test_staticfiles.py:582
Function
test_staticfiles_filename_too_long
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:506
Function
test_staticfiles_follows_symlink_directories
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:561
Function
test_staticfiles_follows_symlinks
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:540
Function
test_staticfiles_head_with_middleware
see https://github.com/Kludex/starlette/pull/935
tests/test_staticfiles.py:58
Function
test_staticfiles_html_normal
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:306
Function
test_staticfiles_html_only_files
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:389
Function
test_staticfiles_html_without_404
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:364
Function
test_staticfiles_html_without_index
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:339
Function
test_staticfiles_instantiated_with_missing_directory
(tmpdir: Path)
tests/test_staticfiles.py:137
Function
test_staticfiles_never_read_file_for_head_method
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:201
Function
test_staticfiles_null_byte_in_path
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:496
Function
test_staticfiles_post
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:94
Function
test_staticfiles_prevents_breaking_out_of_directory
(tmpdir: Path)
tests/test_staticfiles.py:181
Function
test_staticfiles_rejects_absolute_paths
(tmp_path: Path)
tests/test_staticfiles.py:640
Function
test_staticfiles_rejects_absolute_windows_paths
(tmp_path: Path)
tests/test_staticfiles.py:650
Function
test_staticfiles_relative_directory_symlinks
(test_client_factory: TestClientFactory)
tests/test_staticfiles.py:679
Function
test_staticfiles_self_symlinks
(tmp_path: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:660
Function
test_staticfiles_unhandled_os_error_returns_500
( tmpdir: Path, test_client_factory: TestClientFactory, monkeypatch: pytest.MonkeyPatch, )
tests/test_staticfiles.py:517
Function
test_staticfiles_websocket
(tmp_path: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:35
Function
test_staticfiles_with_directory_returns_404
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:109
Function
test_staticfiles_with_invalid_dir_permissions_returns_401
( tmp_path: Path, test_client_factory: TestClientFactory )
tests/test_staticfiles.py:443
Function
test_staticfiles_with_missing_dir_returns_404
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:468
Function
test_staticfiles_with_missing_file_returns_404
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:123
Function
test_staticfiles_with_package
(test_client_factory: TestClientFactory)
tests/test_staticfiles.py:80
Function
test_staticfiles_with_pathlib
(tmp_path: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:46
Function
test_streaming_response
(test_client_factory: TestClientFactory)
tests/test_responses.py:104
Function
test_streaming_response
(asgi_runner: ASGIRunner, benchmark: BenchmarkFixture, case: BenchmarkCase)
benchmarks/streaming_response_benchmark.py:80
Function
test_streaming_response_applies_backpressure
(test_client_factory: TestClientFactory)
tests/test_testclient.py:250
Function
test_streaming_response_copies_mutable_chunks
(test_client_factory: TestClientFactory)
tests/test_testclient.py:300
Function
test_streaming_response_custom_iterable
( test_client_factory: TestClientFactory, )
tests/test_responses.py:157
Function
test_streaming_response_custom_iterator
( test_client_factory: TestClientFactory, )
tests/test_responses.py:132
Function
test_streaming_response_is_available_before_first_chunk
(test_client_factory: TestClientFactory)
tests/test_testclient.py:234
← previous
next →
1,301–1,400 of 1,591, ranked by callers