- Sort Score
- Num 10 results
- Language All
Results 271 - 280 of 4,515 for fromP2 (0.08 seconds)
-
docs_src/cookie_param_models/tutorial002_py39.py
from typing import Union from fastapi import Cookie, FastAPI from pydantic import BaseModel app = FastAPI() class Cookies(BaseModel): model_config = {"extra": "forbid"} session_id: str fatebook_tracker: Union[str, None] = None googall_tracker: Union[str, None] = None @app.get("/items/") async def read_items(cookies: Cookies = Cookie()):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 381 bytes - Click Count (0) -
docs_src/response_model/tutorial002_py39.py
from typing import Union from fastapi import FastAPI from pydantic import BaseModel, EmailStr app = FastAPI() class UserIn(BaseModel): username: str password: str email: EmailStr full_name: Union[str, None] = None # Don't do this in production! @app.post("/user/") async def create_user(user: UserIn) -> UserIn:
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 350 bytes - Click Count (0) -
docs_src/request_form_models/tutorial001_an_py39.py
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Thu Sep 05 15:16:50 GMT 2024 - 268 bytes - Click Count (0) -
docs_src/body/tutorial003_py39.py
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 368 bytes - Click Count (0) -
docs_src/response_model/tutorial003_04_py39.py
from typing import Union from fastapi import FastAPI, Response from fastapi.responses import RedirectResponse app = FastAPI() @app.get("/portal") async def get_portal(teleport: bool = False) -> Union[Response, dict]: if teleport: return RedirectResponse(url="https://www.youtube.com/watch?v=dQw4w9WgXcQ")
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 384 bytes - Click Count (0) -
fess-crawler/src/main/java/org/codelibs/fess/net/protocol/gcs/Handler.java
* It extends URLConnection to provide connectivity to Google Cloud Storage. * This class handles the authentication, connection management, and data retrieval * from storage buckets and objects. * * <p> * The connection extracts bucket and object names from the URL and uses environment * variables for authentication and endpoint configuration. * </p> */ public class GcsURLConnection extends URLConnection {Created: Sat Dec 20 11:21:39 GMT 2025 - Last Modified: Thu Dec 11 08:38:29 GMT 2025 - 9.6K bytes - Click Count (0) -
fess-crawler/src/main/java/org/codelibs/fess/net/protocol/s3/Handler.java
* This class handles the authentication, connection management, and data retrieval * from S3 buckets and objects. * * <p> * The connection extracts bucket and object names from the URL and uses environment * variables for authentication and endpoint configuration. * </p> */ public class S3URLConnection extends URLConnection {Created: Sat Dec 20 11:21:39 GMT 2025 - Last Modified: Thu Dec 11 07:57:44 GMT 2025 - 9.5K bytes - Click Count (0) -
docs_src/settings/app02_an_py39/test_main.py
from fastapi.testclient import TestClient from .config import Settings from .main import app, get_settings client = TestClient(app) def get_settings_override(): return Settings(admin_email="******@****.***") app.dependency_overrides[get_settings] = get_settings_override def test_app(): response = client.get("/info") data = response.json() assert data == { "app_name": "Awesome API",
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 515 bytes - Click Count (0) -
docs_src/header_param_models/tutorial003_py39.py
from typing import Union from fastapi import FastAPI, Header from pydantic import BaseModel app = FastAPI() class CommonHeaders(BaseModel): host: str save_data: bool if_modified_since: Union[str, None] = None traceparent: Union[str, None] = None x_tag: list[str] = [] @app.get("/items/") async def read_items(headers: CommonHeaders = Header(convert_underscores=False)):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sun Mar 23 20:48:54 GMT 2025 - 415 bytes - Click Count (0) -
docs_src/security/tutorial004_an_py310.py
from datetime import datetime, timedelta, timezone from typing import Annotated import jwt from fastapi import Depends, FastAPI, HTTPException, status from fastapi.security import OAuth2PasswordBearer, OAuth2PasswordRequestForm from jwt.exceptions import InvalidTokenError from pwdlib import PasswordHash from pydantic import BaseModel # to get a string like this run: # openssl rand -hex 32
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Sep 29 02:57:38 GMT 2025 - 4.1K bytes - Click Count (0)