- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for testRedirect (0.11 seconds)
-
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() {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 133.3K bytes - Click Count (0) -
tests/test_tutorial/test_behind_a_proxy/test_tutorial001_01.py
from fastapi.testclient import TestClient from docs_src.behind_a_proxy.tutorial001_01_py310 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:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 545 bytes - Click Count (0)