- Sort Score
- Result 10 results
- Languages All
Results 231 - 240 of 4,515 for fromP2 (0.04 sec)
-
docs_src/custom_request_and_route/tutorial001_py39.py
import gzip from typing import Callable from fastapi import Body, FastAPI, Request, Response from fastapi.routing import APIRoute class GzipRequest(Request): async def body(self) -> bytes: if not hasattr(self, "_body"): body = await super().body() if "gzip" in self.headers.getlist("Content-Encoding"): body = gzip.decompress(body) self._body = body return self._body
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 10 08:55:32 UTC 2025 - 967 bytes - Viewed (0) -
tests/test_response_model_default_factory.py
from fastapi import FastAPI from fastapi.testclient import TestClient from pydantic import BaseModel, Field app = FastAPI() class ResponseModel(BaseModel): code: int = 200 message: str = Field(default_factory=lambda: "Successful operation.") @app.get( "/response_model_has_default_factory_return_dict", response_model=ResponseModel, ) async def response_model_has_default_factory_return_dict():
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Sep 20 18:51:40 UTC 2025 - 1.2K bytes - Viewed (0) -
tests/test_serialize_response.py
from typing import Optional from fastapi import FastAPI from fastapi.testclient import TestClient from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str price: Optional[float] = None owner_ids: Optional[list[int]] = None @app.get("/items/valid", response_model=Item) def get_valid(): return {"name": "valid", "price": 1.0} @app.get("/items/coerce", response_model=Item)
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 1.4K bytes - Viewed (0) -
api/maven-api-cli/src/main/java/org/apache/maven/api/cli/InvokerRequest.java
* * @since 4.0.0 */ @Immutable @Experimental public interface InvokerRequest { /** * The parser request this instance was created from. */ @Nonnull ParserRequest parserRequest(); /** * Flag representing parser processing result: if there were some fatal errors duringRegistered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Jun 11 13:14:09 UTC 2025 - 6.7K bytes - Viewed (0) -
scripts/contributors.py
import logging import secrets import subprocess from collections import Counter from datetime import datetime from pathlib import Path from typing import Any import httpx import yaml from github import Github from pydantic import BaseModel, SecretStr from pydantic_settings import BaseSettings github_graphql_url = "https://api.github.com/graphql" prs_query = """ query Q($after: String) {Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 16 12:34:01 UTC 2025 - 8.6K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/ClosingFuture.java
* callable block} that may capture objects for later closing. To start a pipeline from a {@link * ListenableFuture} that doesn't create resources that should be closed later, you can use {@link * #from(ListenableFuture)} instead. * * <h3>Derived steps</h3> * * A {@code ClosingFuture} step can be derived from one or more input {@code ClosingFuture} steps inRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Sep 11 13:51:27 UTC 2025 - 96.9K bytes - Viewed (0) -
docs_src/request_form_models/tutorial002_an_py39.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Sep 06 17:31:18 UTC 2024 - 307 bytes - Viewed (0) -
helm/minio/README.md
``` kubectl -n minio create secret generic minio-trusted-certs --from-file=public.crt --from-file=keycloak.crt ``` If TLS is not enabled, you would need only the third party CA: ``` kubectl -n minio create secret generic minio-trusted-certs --from-file=keycloak.crt ```
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Tue Aug 12 18:20:36 UTC 2025 - 10.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java
lockA.lock(); } // Tests transitive deadlock detection. public void testDeadlock_threeLocks() { // Establish an ordering from lockA -> lockB. lockA.lock(); lockB.lock(); lockB.unlock(); lockA.unlock(); // Establish an ordering from lockB -> lockC. lockB.lock(); lockC.lock(); lockB.unlock(); // lockC -> lockA should fail.
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 16.2K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/util/IgnoreCloseInputStream.java
} /** * Reads the next byte of data from the input stream. * * @return the next byte of data, or -1 if the end of the stream is reached * @throws IOException if an I/O error occurs */ @Override public int read() throws IOException { return inputStream.read(); } /** * Reads up to len bytes of data from the input stream into an array of bytes. *Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sat Nov 22 13:28:22 UTC 2025 - 4.7K bytes - Viewed (0)