- Sort Score
- Num 10 results
- Language All
Results 571 - 580 of 1,812 for Post (0.02 seconds)
-
docs_src/sql_databases/tutorial002_py310.py
def get_session(): with Session(engine) as session: yield session app = FastAPI() @app.on_event("startup") def on_startup(): create_db_and_tables() @app.post("/heroes/", response_model=HeroPublic) def create_hero(hero: HeroCreate, session: Session = Depends(get_session)): db_hero = Hero.model_validate(hero) session.add(db_hero) session.commit()
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Oct 09 19:44:42 GMT 2024 - 2.5K bytes - Click Count (0) -
docs_src/app_testing/app_b_an_py310/main.py
raise HTTPException(status_code=400, detail="Invalid X-Token header") if item_id not in fake_db: raise HTTPException(status_code=404, detail="Item not found") return fake_db[item_id] @app.post("/items/") async def create_item(item: Item, x_token: Annotated[str, Header()]) -> Item: if x_token != fake_secret_token: raise HTTPException(status_code=400, detail="Invalid X-Token header") if item.id in fake_db:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Feb 04 13:32:24 GMT 2026 - 1.1K bytes - Click Count (0) -
android/guava-tests/benchmark/com/google/common/eventbus/EventBusBenchmark.java
void setUp() { eventBus = new EventBus("for benchmarking purposes"); eventBus.register(this); } @Benchmark void postStrings(int reps) { for (int i = 0; i < reps; i++) { eventBus.post("hello there"); } } @Subscribe public void handleStrings(String string) { // Nothing to do here. }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 1.2K bytes - Click Count (0) -
docs/fr/docs/advanced/openapi-callbacks.md
Ensuite votre API va (imaginons) : * Envoyer la facture à un client de la personne développeuse externe. * Encaisser l’argent. * Renvoyer une notification à l’utilisateur de l’API (la personne développeuse externe).
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:37:13 GMT 2026 - 8.7K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HpackTest.kt
assertThat(hpackReader!!.getAndResetHeaderList()).isEqualTo(headerBlock) } /** * HPACK has a max header table size, which can be smaller than the max header message. Ensure the * larger header content is not lost. */ @Test fun tooLargeToHPackIsStillEmitted() { bytesIn.writeByte(0x21) // Dynamic table size update (size = 1). bytesIn.writeByte(0x00) // Literal indexed
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 38.6K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/request-files.md
但當表單包含檔案時,會使用 `multipart/form-data` 編碼。若你使用 `File`,**FastAPI** 會知道要從請求本文的正確部分取得檔案。 若想進一步了解這些編碼與表單欄位,請參考 [<abbr title="Mozilla Developer Network - Mozilla 開發者網路">MDN</abbr> web docs 的 `POST`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST)。 /// /// warning 你可以在一個路徑操作中宣告多個 `File` 與 `Form` 參數,但不能同時宣告預期以 JSON 接收的 `Body` 欄位,因為此請求的本文會使用 `multipart/form-data` 而不是 `application/json`。
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 6.6K bytes - Click Count (0) -
docs/de/docs/tutorial/request-files.md
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:58:09 GMT 2026 - 8.3K bytes - Click Count (0) -
fastapi/background.py
def write_notification(email: str, message=""): with open("log.txt", mode="w") as email_file: content = f"notification for {email}: {message}" email_file.write(content) @app.post("/send-notification/{email}") async def send_notification(email: str, background_tasks: BackgroundTasks): background_tasks.add_task(write_notification, email, message="some notification")Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Feb 11 18:41:21 GMT 2026 - 1.8K bytes - Click Count (0) -
compat/maven-model/src/main/java/org/apache/maven/model/merge/ModelMerger.java
String src = source.getPost(); if (src != null) { if (sourceDominant || target.getPost() == null) { target.setPost(src); target.setLocation("post", source.getLocation("post")); } } } protected void mergeMailingList_Archive( MailingList target, MailingList source, boolean sourceDominant, Map<Object, Object> context) {
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Apr 03 11:21:39 GMT 2025 - 99.2K bytes - Click Count (0) -
docs/ko/docs/advanced/openapi-callbacks.md
청구서를 생성할 수 있는 앱을 개발한다고 가정해 보세요. 이 청구서는 `id`, `title`(선택 사항), `customer`, `total`을 갖습니다. 여러분의 API 사용자(외부 개발자)는 POST 요청으로 여러분의 API에서 청구서를 생성합니다. 그 다음 여러분의 API는(가정해 보면): * 청구서를 외부 개발자의 고객에게 전송합니다. * 돈을 수금합니다. * API 사용자(외부 개발자)의 API로 다시 알림을 보냅니다. * 이는 (여러분의 API에서) 그 외부 개발자가 제공하는 어떤 *external API*로 POST 요청을 보내는 방식으로 수행됩니다(이것이 "callback"입니다). ## 일반적인 **FastAPI** 앱 { #the-normal-fastapi-app }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 8.6K bytes - Click Count (0)