- Sort Score
- Num 10 results
- Language All
Results 51 - 60 of 1,812 for Post (0.02 seconds)
-
docs/zh-hant/docs/tutorial/server-sent-events.md
當瀏覽器在連線中斷後重新連線時,會在 `Last-Event-ID` 標頭中傳送最後接收到的 `id`。 你可以將它作為標頭參數讀取,並用來從用戶端中斷處繼續串流: {* ../../docs_src/server_sent_events/tutorial004_py310.py hl[25,27,31] *} ## 使用 POST 的 SSE { #sse-with-post } SSE 可搭配**任何 HTTP 方法**,不僅限於 `GET`。 這對於像是透過 `POST` 串流 SSE 的協定(例如 [MCP](https://modelcontextprotocol.io))很有用: {* ../../docs_src/server_sent_events/tutorial005_py310.py hl[14] *} ## 技術細節 { #technical-details }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:33:04 GMT 2026 - 4.6K bytes - Click Count (0) -
okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt
.assertLogMatch(Regex("""dnsStart: ${url.host}""")) .assertLogMatch(Regex("""dnsEnd: \[.+]""")) .assertLogMatch(Regex("""connectStart: ${url.host}/.+ DIRECT""")) .assertLogMatch(Regex("""connectEnd: http/1.1""")) .assertLogMatch( Regex( """connectionAcquired: Connection\{${url.host}:\d+, proxy=DIRECT hostAddress=${url.host}/.+ cipherSuite=none protocol=http/1\.1\}""", ),
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Jun 20 11:46:46 GMT 2025 - 10.2K bytes - Click Count (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/Constants.java
*/ public static final String GET_METHOD = "GET"; /** * The HEAD method. */ public static final String HEAD_METHOD = "HEAD"; /** * The POST method. */ public static final String POST_METHOD = "POST"; /** * The status code for OK. */ public static final int OK_STATUS = 0; /** * The status code for Not Modified. */Created: Sun Apr 12 03:50:13 GMT 2026 - Last Modified: Sun Jul 06 02:13:03 GMT 2025 - 3.6K bytes - Click Count (0) -
tests/test_request_body_parameters_media_type.py
class Product(BaseModel): name: str price: float class Shop(BaseModel): name: str @app.post("/products") async def create_product(data: Product = Body(media_type=media_type, embed=True)): pass # pragma: no cover @app.post("/shops") async def create_shop( data: Shop = Body(media_type=media_type), included: list[Product] = Body(default=[], media_type=media_type), ):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 7.2K bytes - Click Count (0) -
tests/test_additional_properties.py
from pydantic import BaseModel app = FastAPI() class Items(BaseModel): items: dict[str, int] @app.post("/foo") def foo(items: Items): return items.items client = TestClient(app) def test_additional_properties_post(): response = client.post("/foo", json={"items": {"foo": 1, "bar": 2}}) assert response.status_code == 200, response.text
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 4.1K bytes - Click Count (0) -
docs/en/docs/reference/apirouter.md
```python from fastapi import APIRouter ``` ::: fastapi.APIRouter options: members: - websocket - include_router - get - put - post - delete - options - head - patch - traceCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 524 bytes - Click Count (0) -
src/test/java/org/codelibs/fess/it/search/FavoritesApiTests.java
Map<String, String> params = new HashMap<>(); params.put("queryId", queryId); Response response = given().contentType("application/json").params(params).when().post("/api/v1/documents/" + docId + "/favorite"); // Should return 200 or 201 int statusCode = response.getStatusCode();
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Dec 20 03:03:44 GMT 2025 - 9.9K bytes - Click Count (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/config/WebAuthenticationConfig.java
Created: Sun Apr 12 03:50:13 GMT 2026 - Last Modified: Fri Jan 09 23:46:52 GMT 2026 - 6.9K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/WholeOperationTimeoutTest.kt
} @Test fun timeoutWritingRequest() { server.enqueue(MockResponse()) val request = Request .Builder() .url(server.url("/")) .post(sleepingRequestBody(500)) .build() val call = client.newCall(request) call.timeout().timeout(250, TimeUnit.MILLISECONDS) assertFailsWith<IOException> { call.execute() }.also { expected ->
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Jun 18 12:28:21 GMT 2025 - 10.6K bytes - Click Count (0) -
.github/ISSUE_TEMPLATE/feature_request.md
--- name: Feature request about: Suggest an idea for this project title: '' labels: '' assignees: '' ---
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri May 15 11:56:53 GMT 2020 - 190 bytes - Click Count (0)