- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for 307 (0.05 sec)
-
tests/test_tutorial/test_advanced_middleware/test_tutorial001.py
response = client.get("/") assert response.status_code == 200, response.text client = TestClient(app) response = client.get("/", follow_redirects=False) assert response.status_code == 307, response.text
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Nov 13 14:26:09 UTC 2022 - 474 bytes - Viewed (0) -
tests/test_tutorial/test_response_model/test_tutorial003_03.py
from docs_src.response_model.tutorial003_03 import app client = TestClient(app) def test_get_portal(): response = client.get("/teleport", follow_redirects=False) assert response.status_code == 307, response.text assert response.headers["location"] == "https://www.youtube.com/watch?v=dQw4w9WgXcQ" def test_openapi_schema(): response = client.get("/openapi.json")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 1.1K bytes - Viewed (0) -
tests/test_tutorial/test_custom_response/test_tutorial006.py
from docs_src.custom_response.tutorial006 import app client = TestClient(app) def test_get(): response = client.get("/typer", follow_redirects=False) assert response.status_code == 307, response.text assert response.headers["location"] == "https://typer.tiangolo.com" def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 1K bytes - Viewed (0) -
tests/test_router_redirect_slashes.py
response = client.get("/hello/", follow_redirects=False) assert response.status_code == 200 response = client.get("/hello", follow_redirects=False) assert response.status_code == 307 def test_redirect_slashes_disabled(): app = FastAPI(redirect_slashes=False) router = APIRouter() @router.get("/hello/") def hello_page() -> str: return "Hello, World!"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Jun 22 10:37:50 UTC 2023 - 974 bytes - Viewed (0) -
tests/test_tutorial/test_custom_response/test_tutorial006b.py
from docs_src.custom_response.tutorial006b import app client = TestClient(app) def test_redirect_response_class(): response = client.get("/fastapi", follow_redirects=False) assert response.status_code == 307 assert response.headers["location"] == "https://fastapi.tiangolo.com" def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 899 bytes - Viewed (0) -
tests/test_tutorial/test_response_model/test_tutorial003_05.py
def test_get_redirect(): response = client.get("/portal", params={"teleport": True}, follow_redirects=False) assert response.status_code == 307, response.text assert response.headers["location"] == "https://www.youtube.com/watch?v=dQw4w9WgXcQ" def test_openapi_schema(): response = client.get("/openapi.json")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 3.4K bytes - Viewed (0) -
tests/test_tutorial/test_response_model/test_tutorial003_02.py
def test_get_redirect(): response = client.get("/portal", params={"teleport": True}, follow_redirects=False) assert response.status_code == 307, response.text assert response.headers["location"] == "https://www.youtube.com/watch?v=dQw4w9WgXcQ" def test_openapi_schema(): response = client.get("/openapi.json")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 3.4K bytes - Viewed (0) -
tests/test_tutorial/test_response_model/test_tutorial003_05_py310.py
@needs_py310 def test_get_redirect(client: TestClient): response = client.get("/portal", params={"teleport": True}, follow_redirects=False) assert response.status_code == 307, response.text assert response.headers["location"] == "https://www.youtube.com/watch?v=dQw4w9WgXcQ" @needs_py310 def test_openapi_schema(client: TestClient): response = client.get("/openapi.json")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 3.6K bytes - Viewed (0) -
.github/workflows/deploy-docs.yml
# TODO: Use v3 when it's fixed, probably in v3.11 # https://github.com/cloudflare/wrangler-action/issues/307 uses: cloudflare/wrangler-action@v3.11 # uses: cloudflare/wrangler-action@v3 with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Oct 26 09:37:59 UTC 2024 - 2.6K bytes - Viewed (0) -
docs/zh/docs/advanced/custom-response.md
/// ```Python hl_lines="2 7" {!../../docs_src/custom_response/tutorial001.py!} ``` /// tip | "小贴士" `ORJSONResponse` 可能是一个更快的选择。 /// ### `RedirectResponse` 返回 HTTP 重定向。默认情况下使用 307 状态代码(临时重定向)。 ```Python hl_lines="2 9" {!../../docs_src/custom_response/tutorial006.py!} ``` ### `StreamingResponse` 采用异步生成器或普通生成器/迭代器,然后流式传输响应主体。 ```Python hl_lines="2 14"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.7K bytes - Viewed (0)