- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 1,038 for Body (0.04 sec)
-
internal/rest/client.go
func (c *Client) newRequest(ctx context.Context, method string, u url.URL, body io.Reader) (*http.Request, error) { rc, ok := body.(io.ReadCloser) if !ok && body != nil { rc = io.NopCloser(body) } req := &http.Request{ Method: method, URL: &u, Proto: "HTTP/1.1", ProtoMajor: 1, ProtoMinor: 1, Header: make(http.Header), Body: rc, Host: u.Host, }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Jul 26 12:55:01 UTC 2024 - 14.7K bytes - Viewed (0) -
docs/em/docs/tutorial/schema-extra-example.md
/// ## `example` & `examples` 🗄 🕐❔ ⚙️ 🙆: * `Path()` * `Query()` * `Header()` * `Cookie()` * `Body()` * `Form()` * `File()` 👆 💪 📣 💽 `example` ⚖️ 👪 `examples` ⏮️ 🌖 ℹ 👈 🔜 🚮 **🗄**. ### `Body` ⏮️ `example` 📥 👥 🚶♀️ `example` 📊 ⌛ `Body()`: //// tab | 🐍 3️⃣.6️⃣ & 🔛 ```Python hl_lines="20-25" {!> ../../docs_src/schema_extra_example/tutorial003.py!} ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5.5K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-ResponseCommon.kt
""".trimMargin(), ) } override fun timeout() = Timeout.NONE override fun close() { } } fun Response.stripBody(): Response { return newBuilder() .body(UnreadableResponseBody(body.contentType(), body.contentLength())) .build() } val Response.commonIsSuccessful: Boolean get() = code in 200..299 fun Response.commonHeaders(name: String): List<String> = headers.values(name)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 15 13:24:48 UTC 2024 - 5.2K bytes - Viewed (0) -
tests/test_required_noneable.py
from typing import Union from fastapi import Body, FastAPI, Query from fastapi.testclient import TestClient app = FastAPI() @app.get("/query") def read_query(q: Union[str, None]): return q @app.get("/explicit-query") def read_explicit_query(q: Union[str, None] = Query()): return q @app.post("/body-embed") def send_body_embed(b: Union[str, None] = Body(embed=True)): return b
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat May 14 19:08:31 UTC 2022 - 1.5K bytes - Viewed (0) -
cmd/auth-handler_test.go
} } } // Provides a fully populated http request instance, fails otherwise. func mustNewRequest(method string, urlStr string, contentLength int64, body io.ReadSeeker, t *testing.T) *http.Request { req, err := newTestRequest(method, urlStr, contentLength, body) if err != nil { t.Fatalf("Unable to initialize new http request %s", err) } return req }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 15.4K bytes - Viewed (0) -
okhttp-coroutines/src/test/kotlin/okhttp3/coroutines/ExecuteAsyncTest.kt
this.server = server } @Test fun suspendCall() { runTest { server.enqueue(MockResponse(body = "abc")) val call = client.newCall(request) call.executeAsync().use { withContext(Dispatchers.IO) { assertThat(it.body.string()).isEqualTo("abc") } } } } @Test fun timeoutCall() { runTest { server.enqueue(
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Apr 18 01:24:38 UTC 2024 - 5.4K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/entity/TestEntity.java
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 1.2K bytes - Viewed (0) -
docs/en/docs/tutorial/response-status-code.md
<img src="/img/tutorial/response-status-code/image01.png"> /// note Some response codes (see the next section) indicate that the response does not have a body. FastAPI knows this, and will produce OpenAPI docs that state there is no response body. /// ## About HTTP status codes /// note If you already know what HTTP status codes are, skip to the next section. ///
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon Oct 28 11:13:18 UTC 2024 - 3.9K bytes - Viewed (0) -
tests/test_tutorial/test_request_files/test_tutorial001.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 7.7K bytes - Viewed (0) -
tests/test_modules_same_name_body/app/a.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri May 13 23:38:22 UTC 2022 - 160 bytes - Viewed (0)