- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for cogs (0.14 sec)
-
fastapi/middleware/cors.py
from starlette.middleware.cors import CORSMiddleware as CORSMiddleware # noqa...
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sun Dec 20 18:50:00 GMT 2020 - 79 bytes - Viewed (0) -
tests/test_tutorial/test_cors/test_tutorial001.py
from fastapi.testclient import TestClient from docs_src.cors.tutorial001 import app def test_cors(): client = TestClient(app) # Test pre-flight response headers = { "Origin": "https://localhost.tiangolo.com", "Access-Control-Request-Method": "GET", "Access-Control-Request-Headers": "X-Example", } response = client.options("/", headers=headers) assert response.status_code == 200, response.text
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Jul 09 18:06:12 GMT 2020 - 1.2K bytes - Viewed (0) -
docs_src/cors/tutorial001.py
from fastapi import FastAPI from fastapi.middleware.cors import CORSMiddleware app = FastAPI() origins = [ "http://localhost.tiangolo.com", "https://localhost.tiangolo.com", "http://localhost", "http://localhost:8080", ] app.add_middleware( CORSMiddleware, allow_origins=origins, allow_credentials=True, allow_methods=["*"], allow_headers=["*"], ) @app.get("/")
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Mar 26 19:09:53 GMT 2020 - 459 bytes - Viewed (0) -
ci/official/containers/linux_arm64/devel.usertools/squash_testlogs.py
of them that contain failures into one file. The TensorFlow DevInfra team uses this to generate a simple overview of an entire pip and nonpip test invocation, since the normal logs that Bazel creates are too large for the internal invocation viewer. """ import collections import os import re import subprocess import sys from junitparser import JUnitXml result = JUnitXml() try:
Python - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Sep 18 19:00:37 GMT 2023 - 4.8K bytes - Viewed (0)