- Sort Score
- Result 10 results
- Languages All
Results 5501 - 5510 of 7,200 for RETURN (0.03 sec)
-
tests/test_tutorial/test_query_params_str_validations/test_tutorial001.py
], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module( f"docs_src.query_params_str_validations.{request.param}" ) client = TestClient(mod.app) return client def test_query_params_str_validations_no_query(client: TestClient): response = client.get("/items/") assert response.status_code == 200
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 4.1K bytes - Viewed (0) -
internal/config/subnet/help.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package subnet import "github.com/minio/minio/internal/config" var ( defaultHelpPostfix = func(key string) string { return config.DefaultHelpPostfix(DefaultKVS, key) } // HelpSubnet - provides help for subnet api key config HelpSubnet = config.HelpKVS{ config.HelpKV{ Key: config.License, Type: "string",
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Wed Jul 10 20:16:44 UTC 2024 - 1.7K bytes - Viewed (0) -
build-logic-settings/build-environment/src/main/kotlin/gradlebuild/basics/BuildEnvironmentService.kt
commandLine = listOf("git", *args) if (OperatingSystem.current().isWindows) { commandLine = listOf("cmd.exe", "/d", "/c") + commandLine } } return execOutput.result.zip(execOutput.standardOutput.asText) { result, outputText -> if (result.exitValue == 0) outputText.trim() else "<unknown>" // It's a source distribution, we don't know. } }
Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Fri Jul 26 10:02:49 UTC 2024 - 2K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/JapicmpTaskWithKotlin.java
Project project = getProject(); DependencyHandler dependencies = project.getDependencies(); String kotlinVersion = new ExternalModulesExtension(4) {}.getKotlinVersion(); return project.getConfigurations().detachedConfiguration( dependencies.create("org.jetbrains.kotlin:kotlin-compiler-embeddable:" + kotlinVersion) ); }
Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Wed Dec 24 14:15:15 UTC 2025 - 2.3K bytes - Viewed (0) -
docs_src/header_params/tutorial002_py310.py
from fastapi import FastAPI, Header app = FastAPI() @app.get("/items/") async def read_items( strange_header: str | None = Header(default=None, convert_underscores=False), ):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Mar 26 16:56:53 UTC 2024 - 228 bytes - Viewed (0) -
docs_src/advanced_middleware/tutorial003_py39.py
from fastapi import FastAPI from fastapi.middleware.gzip import GZipMiddleware app = FastAPI() app.add_middleware(GZipMiddleware, minimum_size=1000, compresslevel=5) @app.get("/") async def main():
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 230 bytes - Viewed (0) -
docs_src/cookie_params/tutorial001_an_py310.py
from typing import Annotated from fastapi import Cookie, FastAPI app = FastAPI() @app.get("/items/") async def read_items(ads_id: Annotated[str | None, Cookie()] = None):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 205 bytes - Viewed (0) -
docs_src/settings/app01_py39/main.py
from fastapi import FastAPI from .config import settings app = FastAPI() @app.get("/info") async def info(): return { "app_name": settings.app_name, "admin_email": settings.admin_email, "items_per_user": settings.items_per_user,
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 267 bytes - Viewed (0) -
tests/test_include_route.py
from fastapi.responses import JSONResponse from fastapi.testclient import TestClient app = FastAPI() router = APIRouter() @router.route("/items/") def read_items(request: Request): return JSONResponse({"hello": "world"}) app.include_router(router) client = TestClient(app) def test_sub_router(): response = client.get("/items/") assert response.status_code == 200, response.text
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Apr 08 04:37:38 UTC 2020 - 496 bytes - Viewed (0) -
docs_src/query_params/tutorial004_py310.py
if q: item.update({"q": q}) if not short: item.update( {"description": "This is an amazing item that has a long description"} )Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Jan 07 14:11:31 UTC 2022 - 436 bytes - Viewed (0)