MCPcopy Create free account

hub / github.com/Kludex/starlette / functions

Functions1,591 in github.com/Kludex/starlette

Functiontest_route_converters
(client: TestClient)
tests/test_routing.py:230
Functiontest_route_is_resolved_after_path_rewriting_middleware
( test_client_factory: TestClientFactory, tracer_provider: tuple[TracerProvider, InMemorySpanExporter]
tests/middleware/test_opentelemetry.py:303
Functiontest_route_name
(endpoint: Callable[..., Response], expected_name: str)
tests/test_routing.py:868
Functiontest_route_override_applies_when_middleware_defers_response_start
(test_client_factory: TestClientFactory)
tests/middleware/test_body_limit.py:56
Functiontest_route_override_survives_shallow_scope_copy
(test_client_factory: TestClientFactory)
tests/middleware/test_body_limit.py:321
Functiontest_route_repr
()
tests/test_routing.py:1102
Functiontest_route_repr_without_methods
()
tests/test_routing.py:1107
Functiontest_router
(client: TestClient)
tests/test_routing.py:185
Functiontest_router_add_route
(client: TestClient)
tests/test_routing.py:315
Functiontest_router_add_websocket_route
(client: TestClient)
tests/test_routing.py:338
Functiontest_router_duplicate_path
(client: TestClient)
tests/test_routing.py:321
Functiontest_router_limit
(test_client_factory: TestClientFactory)
tests/middleware/test_body_limit.py:313
Functiontest_router_middleware
(test_client_factory: TestClientFactory)
tests/test_routing.py:348
Functiontest_router_query_method
(client: TestClient)
tests/test_routing.py:327
Functiontest_routes
()
tests/test_applications.py:288
Functiontest_routing_method_not_allowed
(asgi_runner: ASGIRunner, benchmark: BenchmarkFixture)
benchmarks/routing_benchmark.py:64
Functiontest_routing_miss
(asgi_runner: ASGIRunner, benchmark: BenchmarkFixture)
benchmarks/routing_benchmark.py:59
Functiontest_routing_param_late
(asgi_runner: ASGIRunner, benchmark: BenchmarkFixture)
benchmarks/routing_benchmark.py:54
Functiontest_routing_small_app
(asgi_runner: ASGIRunner, benchmark: BenchmarkFixture)
benchmarks/routing_benchmark.py:69
Functiontest_routing_static_early
(asgi_runner: ASGIRunner, benchmark: BenchmarkFixture)
benchmarks/routing_benchmark.py:44
Functiontest_routing_static_late
(asgi_runner: ASGIRunner, benchmark: BenchmarkFixture)
benchmarks/routing_benchmark.py:49
Functiontest_run_background_tasks_even_if_client_disconnects
()
tests/middleware/test_base.py:265
Functiontest_run_background_tasks_raise_exceptions
(test_client_factory: TestClientFactory)
tests/middleware/test_base.py:311
Functiontest_run_context_manager_exit_even_if_client_disconnects
()
tests/middleware/test_base.py:411
Functiontest_run_until_first_complete
()
tests/test_concurrency.py:16
Functiontest_schema_endpoint
(test_client_factory: TestClientFactory)
tests/test_schemas.py:308
Functiontest_schema_generation
()
tests/test_schemas.py:155
Functiontest_secure_session
(test_client_factory: TestClientFactory)
tests/middleware/test_session.py:130
Functiontest_send_before_accept
(test_client_factory: TestClientFactory)
tests/test_websockets.py:608
Functiontest_send_denial_response
(test_client_factory: TestClientFactory)
tests/test_websockets.py:310
Functiontest_send_denial_response_with_file_response
(test_client_factory: TestClientFactory, tmp_path: Path)
tests/test_websockets.py:346
Functiontest_send_denial_response_with_streaming_response
(test_client_factory: TestClientFactory)
tests/test_websockets.py:326
Functiontest_send_json_invalid_mode
(test_client_factory: TestClientFactory)
tests/test_websockets.py:551
Functiontest_send_response_duplicate_start
(test_client_factory: TestClientFactory)
tests/test_websockets.py:409
Functiontest_send_response_multi
(test_client_factory: TestClientFactory)
tests/test_websockets.py:364
Functiontest_send_response_unsupported
(test_client_factory: TestClientFactory)
tests/test_websockets.py:388
Functiontest_send_wrong_message_type
(test_client_factory: TestClientFactory)
tests/test_websockets.py:619
Functiontest_session
(test_client_factory: TestClientFactory)
tests/middleware/test_session.py:46
Functiontest_session_cookie
(test_client_factory: TestClientFactory)
tests/middleware/test_session.py:204
Functiontest_session_cookie_subpath
(test_client_factory: TestClientFactory)
tests/middleware/test_session.py:167
Functiontest_session_expires
(test_client_factory: TestClientFactory)
tests/middleware/test_session.py:106
Functiontest_session_persists_mutations
( test_client_factory: TestClientFactory, path: str, data: dict[str, str] | None, expected: di
tests/middleware/test_session.py:351
Functiontest_session_tracks_modification
()
tests/middleware/test_session.py:303
Functiontest_session_zero_max_age
(test_client_factory: TestClientFactory)
tests/middleware/test_session.py:226
Functiontest_set_cookie
(test_client_factory: TestClientFactory, monkeypatch: pytest.MonkeyPatch)
tests/test_responses.py:541
Functiontest_set_cookie_only_on_modification
(test_client_factory: TestClientFactory)
tests/middleware/test_session.py:259
Functiontest_set_cookie_path_none
(test_client_factory: TestClientFactory)
tests/test_responses.py:589
Functiontest_set_cookie_raises_for_invalid_python_version
( test_client_factory: TestClientFactory, )
tests/test_responses.py:574
Functiontest_set_cookie_samesite_none
(test_client_factory: TestClientFactory)
tests/test_responses.py:601
Functiontest_standalone_route_does_not_match
( test_client_factory: Callable[..., TestClient], )
tests/test_routing.py:663
Functiontest_standalone_route_matches
( test_client_factory: TestClientFactory, )
tests/test_routing.py:653
Functiontest_standalone_ws_route_does_not_match
( test_client_factory: TestClientFactory, )
tests/test_routing.py:689
Functiontest_standalone_ws_route_matches
( test_client_factory: TestClientFactory, )
tests/test_routing.py:679
Functiontest_starlette_limit_applies_before_user_middleware
( test_client_factory: TestClientFactory, )
tests/middleware/test_body_limit.py:244
Functiontest_state_data_across_multiple_middlewares
( test_client_factory: TestClientFactory, )
tests/middleware/test_base.py:119
Functiontest_staticfiles
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:23
Functiontest_staticfiles_200_with_etag_mismatch
( tmp_path: Path, test_client_factory: TestClientFactory, if_none_match: str, )
tests/test_staticfiles.py:253
Functiontest_staticfiles_200_with_etag_mismatch_and_timestamp_match
( tmpdir: Path, test_client_factory: TestClientFactory )
tests/test_staticfiles.py:267
Functiontest_staticfiles_304_with_etag_match
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:214
Functiontest_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
Functiontest_staticfiles_304_with_last_modified_compare_last_req
( tmpdir: Path, test_client_factory: TestClientFactory )
tests/test_staticfiles.py:285
Functiontest_staticfiles_access_file_as_dir_returns_404
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:482
Functiontest_staticfiles_avoids_path_traversal
(tmp_path: Path)
tests/test_staticfiles.py:607
Functiontest_staticfiles_cache_invalidation_for_deleted_file_html_mode
( tmpdir: Path, test_client_factory: TestClientFactory )
tests/test_staticfiles.py:406
Functiontest_staticfiles_config_check_occurs_only_once
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:167
Functiontest_staticfiles_configured_with_file_instead_of_directory
( tmpdir: Path, test_client_factory: TestClientFactory )
tests/test_staticfiles.py:153
Functiontest_staticfiles_configured_with_missing_directory
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:144
Functiontest_staticfiles_disallows_path_traversal_with_symlinks
(tmpdir: Path)
tests/test_staticfiles.py:582
Functiontest_staticfiles_filename_too_long
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:506
Functiontest_staticfiles_follows_symlink_directories
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:561
Functiontest_staticfiles_follows_symlinks
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:540
Functiontest_staticfiles_head_with_middleware
see https://github.com/Kludex/starlette/pull/935
tests/test_staticfiles.py:58
Functiontest_staticfiles_html_normal
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:306
Functiontest_staticfiles_html_only_files
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:389
Functiontest_staticfiles_html_without_404
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:364
Functiontest_staticfiles_html_without_index
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:339
Functiontest_staticfiles_instantiated_with_missing_directory
(tmpdir: Path)
tests/test_staticfiles.py:137
Functiontest_staticfiles_never_read_file_for_head_method
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:201
Functiontest_staticfiles_null_byte_in_path
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:496
Functiontest_staticfiles_post
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:94
Functiontest_staticfiles_prevents_breaking_out_of_directory
(tmpdir: Path)
tests/test_staticfiles.py:181
Functiontest_staticfiles_rejects_absolute_paths
(tmp_path: Path)
tests/test_staticfiles.py:640
Functiontest_staticfiles_rejects_absolute_windows_paths
(tmp_path: Path)
tests/test_staticfiles.py:650
Functiontest_staticfiles_relative_directory_symlinks
(test_client_factory: TestClientFactory)
tests/test_staticfiles.py:679
Functiontest_staticfiles_self_symlinks
(tmp_path: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:660
Functiontest_staticfiles_unhandled_os_error_returns_500
( tmpdir: Path, test_client_factory: TestClientFactory, monkeypatch: pytest.MonkeyPatch, )
tests/test_staticfiles.py:517
Functiontest_staticfiles_websocket
(tmp_path: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:35
Functiontest_staticfiles_with_directory_returns_404
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:109
Functiontest_staticfiles_with_invalid_dir_permissions_returns_401
( tmp_path: Path, test_client_factory: TestClientFactory )
tests/test_staticfiles.py:443
Functiontest_staticfiles_with_missing_dir_returns_404
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:468
Functiontest_staticfiles_with_missing_file_returns_404
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:123
Functiontest_staticfiles_with_package
(test_client_factory: TestClientFactory)
tests/test_staticfiles.py:80
Functiontest_staticfiles_with_pathlib
(tmp_path: Path, test_client_factory: TestClientFactory)
tests/test_staticfiles.py:46
Functiontest_streaming_response
(test_client_factory: TestClientFactory)
tests/test_responses.py:104
Functiontest_streaming_response
(asgi_runner: ASGIRunner, benchmark: BenchmarkFixture, case: BenchmarkCase)
benchmarks/streaming_response_benchmark.py:80
Functiontest_streaming_response_applies_backpressure
(test_client_factory: TestClientFactory)
tests/test_testclient.py:250
Functiontest_streaming_response_copies_mutable_chunks
(test_client_factory: TestClientFactory)
tests/test_testclient.py:300
Functiontest_streaming_response_custom_iterable
( test_client_factory: TestClientFactory, )
tests/test_responses.py:157
Functiontest_streaming_response_custom_iterator
( test_client_factory: TestClientFactory, )
tests/test_responses.py:132
Functiontest_streaming_response_is_available_before_first_chunk
(test_client_factory: TestClientFactory)
tests/test_testclient.py:234
← previousnext →1,301–1,400 of 1,591, ranked by callers