- Sort Score
- Result 10 results
- Languages All
Results 511 - 520 of 1,038 for Body (0.02 sec)
-
docs/zh/docs/tutorial/request-forms.md
``` ## 定义 `Form` 参数 创建表单(`Form`)参数的方式与 `Body` 和 `Query` 一样: ```Python hl_lines="7" {!../../docs_src/request_forms/tutorial001.py!} ``` 例如,OAuth2 规范的 "密码流" 模式规定要通过表单字段发送 `username` 和 `password`。 <abbr title="specification">该规范</abbr>要求字段必须命名为 `username` 和 `password`,并通过表单字段发送,不能用 JSON。 使用 `Form` 可以声明与 `Body` (及 `Query`、`Path`、`Cookie`)相同的元数据和验证。 /// info | "说明"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.2K bytes - Viewed (0) -
docs_src/websockets/tutorial003_py39.py
from fastapi import FastAPI, WebSocket, WebSocketDisconnect from fastapi.responses import HTMLResponse app = FastAPI() html = """ <!DOCTYPE html> <html> <head> <title>Chat</title> </head> <body> <h1>WebSocket Chat</h1> <h2>Your ID: <span id="ws-id"></span></h2> <form action="" onsubmit="sendMessage(event)"> <input type="text" id="messageText" autocomplete="off"/>
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 2.5K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/PostStreaming.kt
} val request = Request( url = "https://api.github.com/markdown/raw".toHttpUrl(), body = requestBody, ) client.newCall(request).execute().use { response -> if (!response.isSuccessful) throw IOException("Unexpected code $response") println(response.body.string()) } } companion object { val MEDIA_TYPE_MARKDOWN = "text/x-markdown; charset=utf-8".toMediaType()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.9K bytes - Viewed (0) -
docs/changelogs/changelog_2x.md
<artifactId>okio</artifactId> <version>1.4.0</version> </dependency> ``` * **`Request.Builder` no longer accepts null if a request body is required.** Passing null will now fail for request methods that require a body. Instead use an empty body such as this one: ```java RequestBody.create(null, new byte[0]); ```
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Feb 06 02:19:09 UTC 2022 - 26.6K bytes - Viewed (0) -
docs/ru/docs/tutorial/request-forms-and-files.md
/// ```Python hl_lines="1" {!> ../../docs_src/request_forms_and_files/tutorial001.py!} ``` //// ## Определите параметры `File` и `Form` Создайте параметры файла и формы таким же образом, как для `Body` или `Query`: //// tab | Python 3.9+ ```Python hl_lines="10-12" {!> ../../docs_src/request_forms_and_files/tutorial001_an_py39.py!} ``` //// //// tab | Python 3.6+ ```Python hl_lines="9-11"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.9K bytes - Viewed (0) -
docs/changelogs/changelog_3x.md
* Fix: Prefer the server's response body on all conditional cache misses. Previously we would return the cached response's body if it had a newer `Last-Modified` date. * Fix: Update the stored timestamp on conditional cache hits. * New: Optimized HTTP/2 request header encoding. More headers are HPACK-encoded and string literals are now Huffman-encoded. * New: Expose `Part` headers and body in `Multipart`.
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Feb 06 14:55:54 UTC 2022 - 50.8K bytes - Viewed (0) -
samples/compare/src/test/kotlin/okhttp3/compare/JavaHttpClientTest.kt
MockResponse.Builder() .body("hello, Java HTTP Client") .build(), ) val request = HttpRequest.newBuilder(server.url("/").toUri()) .header("Accept", "text/plain") .build() val response = httpClient.send(request, BodyHandlers.ofString()) assertThat(response.statusCode()).isEqualTo(200) assertThat(response.body()).isEqualTo("hello, Java HTTP Client")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.7K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/PostStreamingWithPipe.java
try (Response response = client.newCall(request).execute()) { if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); System.out.println(response.body().string()); } } private void streamPrimesToSinkAsynchronously(final BufferedSink sink) { Thread thread = new Thread("writer") { @Override public void run() { try {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Fri Jul 06 03:18:15 UTC 2018 - 3.1K bytes - Viewed (0) -
src/main/webapp/WEB-INF/orig/view/profile/index.jsp
<![endif]--> </head> <body class="hold-transition login-page"> <div class="login-box"> <div class="login-logo"> <la:link href="/"> <img src="${fe:url('/images/logo-top.png')}" alt="<la:message key="labels.header_brand_name" />" /> </la:link> </div> <div class="card"> <div class="card-body login-card-body"> <p class="login-box-msg">
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Sat Oct 26 01:07:52 UTC 2024 - 3.6K bytes - Viewed (0) -
src/main/webapp/WEB-INF/view/admin/labeltype/admin_labeltype.jsp
<title><la:message key="labels.admin_brand_title"/> | <la:message key="labels.labeltype_configuration"/></title> <jsp:include page="/WEB-INF/view/common/admin/head.jsp"></jsp:include> </head> <body class="hold-transition sidebar-mini"> <div class="wrapper"> <jsp:include page="/WEB-INF/view/common/admin/header.jsp"></jsp:include> <jsp:include page="/WEB-INF/view/common/admin/sidebar.jsp">
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Tue Mar 31 05:47:05 UTC 2020 - 10.5K bytes - Viewed (0)