- Sort Score
- Num 10 results
- Language All
Results 1101 - 1110 of 1,304 for DEF (0.01 seconds)
-
src/main/java/jcifs/http/NtlmHttpURLConnection.java
@Override public int getHeaderFieldInt(final String header, final int def) { handshake(); return this.connection.getHeaderFieldInt(header, def); } @Override public long getHeaderFieldDate(final String header, final long def) { handshake(); return this.connection.getHeaderFieldDate(header, def); } @OverrideCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 25.6K bytes - Click Count (0) -
docs/fr/docs/tutorial/first-steps.md
Elle sera appelée par **FastAPI** quand une requête sur l'URL `/` sera reçue via une opération `GET`. Ici, c'est une fonction asynchrone (définie avec `async def`). --- Vous pourriez aussi la définir comme une fonction classique plutôt qu'avec `async def` : {* ../../docs_src/first_steps/tutorial003.py hl[7] *} /// note
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Oct 11 17:48:49 GMT 2025 - 10.1K bytes - Click Count (0) -
docs_src/query_params_str_validations/tutorial014_py39.py
from typing import Union from fastapi import FastAPI, Query app = FastAPI() @app.get("/items/") async def read_items( hidden_query: Union[str, None] = Query(default=None, include_in_schema=False), ): if hidden_query: return {"hidden_query": hidden_query} else:
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 330 bytes - Click Count (0) -
docs_src/custom_response/tutorial002_py39.py
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 352 bytes - Click Count (0) -
docs_src/query_params_str_validations/tutorial003_py310.py
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri May 13 23:38:22 GMT 2022 - 290 bytes - Click Count (0) -
docs_src/middleware/tutorial001_py39.py
import time from fastapi import FastAPI, Request app = FastAPI() @app.middleware("http") async def add_process_time_header(request: Request, call_next): start_time = time.perf_counter() response = await call_next(request) process_time = time.perf_counter() - start_time response.headers["X-Process-Time"] = str(process_time)
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 365 bytes - Click Count (0) -
docs/es/docs/tutorial/testing.md
{* ../../docs_src/app_testing/tutorial001_py39.py hl[2,12,15:18] *} /// tip | Consejo Nota que las funciones de prueba son `def` normales, no `async def`. Y las llamadas al cliente también son llamadas normales, sin usar `await`. Esto te permite usar `pytest` directamente sin complicaciones. /// /// note | Nota TécnicaCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 6.5K bytes - Click Count (0) -
docs/ru/docs/tutorial/testing.md
{* ../../docs_src/app_testing/tutorial001_py39.py hl[2,12,15:18] *} /// tip | Подсказка Обратите внимание, что тестирующая функция является обычной `def`, а не асинхронной `async def`. И вызов клиента также осуществляется без `await`. Это позволяет вам использовать `pytest` без лишних усложнений. /// /// note | Технические деталиCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 10K bytes - Click Count (0) -
docs_src/request_forms_and_files/tutorial001_an_py39.py
from typing import Annotated from fastapi import FastAPI, File, Form, UploadFile app = FastAPI() @app.post("/files/") async def create_file( file: Annotated[bytes, File()], fileb: Annotated[UploadFile, File()], token: Annotated[str, Form()], ): return { "file_size": len(file), "token": token, "fileb_content_type": fileb.content_type,
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 386 bytes - Click Count (0) -
docs_src/response_cookies/tutorial001_py39.py
from fastapi import FastAPI from fastapi.responses import JSONResponse app = FastAPI() @app.post("/cookie/") def create_cookie(): content = {"message": "Come to the dark side, we have cookies"} response = JSONResponse(content=content) response.set_cookie(key="fakesession", value="fake-cookie-session-value")
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 344 bytes - Click Count (0)