- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for test_redirect (0.09 sec)
-
tests/test_tutorial/test_behind_a_proxy/test_tutorial001_01.py
from fastapi.testclient import TestClient from docs_src.behind_a_proxy.tutorial001_01_py39 import app client = TestClient( app, base_url="https://example.com", follow_redirects=False, ) def test_redirect() -> None: response = client.get("/items") assert response.status_code == 307 assert response.headers["location"] == "https://example.com/items/" def test_no_redirect() -> None:
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 544 bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt
} @Test fun response307WithGet() { testRedirect(true, "GET") } @Test fun response307WithHead() { testRedirect(true, "HEAD") } @Test fun response307WithOptions() { testRedirect(true, "OPTIONS") } @Test fun response307WithPost() { testRedirect(true, "POST") } @Test fun response308WithGet() {
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sat Jun 21 20:36:35 UTC 2025 - 133.2K bytes - Viewed (0)