- Sort Score
- Num 10 results
- Language All
Results 1131 - 1140 of 4,515 for fromP2 (0.06 seconds)
-
docs_src/bigger_applications/app_an_py39/dependencies.py
from typing import Annotated from fastapi import Header, HTTPException async def get_token_header(x_token: Annotated[str, Header()]): if x_token != "fake-super-secret-token": raise HTTPException(status_code=400, detail="X-Token header invalid") async def get_query_token(token: str): if token != "jessica":
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 409 bytes - Click Count (0) -
tests/test_tutorial/test_response_headers/test_tutorial001.py
from fastapi.testclient import TestClient from docs_src.response_headers.tutorial001_py39 import app client = TestClient(app) def test_path_operation(): response = client.get("/headers/") assert response.status_code == 200, response.text assert response.json() == {"message": "Hello World"} assert response.headers["X-Cat-Dog"] == "alone in the world"
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 431 bytes - Click Count (0) -
docs_src/sql_databases/tutorial002_py39.py
from typing import Union from fastapi import Depends, FastAPI, HTTPException, Query from sqlmodel import Field, Session, SQLModel, create_engine, select class HeroBase(SQLModel): name: str = Field(index=True) age: Union[int, None] = Field(default=None, index=True) class Hero(HeroBase, table=True): id: Union[int, None] = Field(default=None, primary_key=True) secret_name: str class HeroPublic(HeroBase):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Oct 09 19:44:42 GMT 2024 - 2.6K bytes - Click Count (0) -
android/guava/src/com/google/common/cache/RemovalListener.java
import com.google.common.annotations.GwtCompatible; /** * An object that can receive a notification when an entry is removed from a cache. The removal * resulting in notification could have occurred to an entry being manually removed or replaced, or * due to eviction resulting from timed expiration, exceeding a maximum size, or garbage collection. *
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 2K bytes - Click Count (0) -
tests/test_tutorial/test_extra_models/test_tutorial001_tutorial002.py
import importlib import pytest from dirty_equals import IsList from fastapi.testclient import TestClient from ...utils import needs_py310 @pytest.fixture( name="client", params=[ pytest.param("tutorial001_py39"), pytest.param("tutorial001_py310", marks=needs_py310), pytest.param("tutorial002_py39"), pytest.param("tutorial002_py310", marks=needs_py310), ], )
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 5.5K bytes - Click Count (0) -
docs/sts/web-identity.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json import logging import urllib from uuid import uuid4 import boto3 import requests from botocore.client import Config from flask import Flask, request boto3.set_stream_logger('boto3.resources', logging.DEBUG) authorize_url = "http://localhost:8080/auth/realms/minio/protocol/openid-connect/auth" token_url = "http://localhost:8080/auth/realms/minio/protocol/openid-connect/token"
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Wed Jul 28 01:37:51 GMT 2021 - 2.9K bytes - Click Count (0) -
internal/config/constants.go
// Current files EnvRootUserFile = "MINIO_ROOT_USER_FILE" EnvRootPasswordFile = "MINIO_ROOT_PASSWORD_FILE" // Set all config environment variables from 'config.env' // if necessary. Overrides all previous settings and also // overrides all environment values passed from // 'podman run -e ENV=value' EnvConfigEnvFile = "MINIO_CONFIG_ENV_FILE" EnvBrowser = "MINIO_BROWSER" EnvDomain = "MINIO_DOMAIN"
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sat Sep 21 01:18:54 GMT 2024 - 3.4K bytes - Click Count (1) -
src/main/java/jcifs/smb/MultiChannelManager.java
private int getMaxChannelsFromConfig(Configuration config) { // In a real implementation, this would read from configuration return 4; // Default to 4 channels } private LoadBalancingStrategy getLoadBalancingStrategyFromConfig(Configuration config) { // In a real implementation, this would read from configuration return LoadBalancingStrategy.ROUND_ROBIN; }
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 20.5K bytes - Click Count (0) -
docs/de/docs/tutorial/bigger-applications.md
Wir könnten sie auch wie folgt importieren: ```Python from app.routers import items, users ``` /// info | Info Die erste Version ist ein „relativer Import“: ```Python from .routers import items, users ``` Die zweite Version ist ein „absoluter Import“: ```Python from app.routers import items, users ```
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 10 13:54:34 GMT 2025 - 21.3K bytes - Click Count (0) -
docs/ru/docs/tutorial/bigger-applications.md
Мы также могли бы импортировать и другим методом: ```Python from app.routers import items, users ``` /// info | Примечание Первая версия является примером относительного импорта: ```Python from .routers import items, users ``` Вторая версия является примером абсолютного импорта: ```Python from app.routers import items, users ```
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Thu Dec 11 21:25:03 GMT 2025 - 30.4K bytes - Click Count (0)