- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 958 for Body (0.02 sec)
-
docs/recipes.md
Download a file, print its headers, and print its response body as a string. The `string()` method on response body is convenient and efficient for small documents. But if the response body is large (greater than 1 MiB), avoid `string()` because it will load the entire document into memory. In that case, prefer to process the body as a stream. === ":material-language-kotlin: Kotlin" ```kotlin
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 30 17:01:12 UTC 2025 - 47.8K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallKotlinTest.kt
fun legalToExecuteTwiceCloning() { server.enqueue(MockResponse(body = "abc")) server.enqueue(MockResponse(body = "def")) val request = Request(server.url("/")) val call = client.newCall(request) val response1 = call.execute() val cloned = call.clone() val response2 = cloned.execute() assertThat("abc").isEqualTo(response1.body.string()) assertThat("def").isEqualTo(response2.body.string()) }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 8.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/RequestCommonTest.kt
assertThat(request.body).isNull() assertThat(request.tags).isEmpty() } @Test fun constructorNoMethod() { val url = "https://example.com/".toHttpUrl() val body = "hello".toRequestBody() val headers = headersOf("User-Agent", "RequestTest") val request = Request( url = url, headers = headers, body = body, )
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 10.8K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CacheCorruptionTest.kt
formatDate(1, TimeUnit.HOURS)!!, ), body = "ABC.1", ), ) server.enqueue( MockResponse( headers = headersOf( "Last-Modified", formatDate(-1, TimeUnit.HOURS)!!, "Expires", formatDate(1, TimeUnit.HOURS)!!, ), body = "ABC.2", ), ) client = client
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 6K 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 { #about-http-status-codes } /// note If you already know what HTTP status codes are, skip to the next section. ///
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 4K bytes - Viewed (0) -
src/main/webapp/WEB-INF/view/admin/searchlist/admin_searchlist.jsp
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Sep 24 13:09:22 UTC 2020 - 20K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/elevateword/ApiAdminElevatewordAction.java
* * @param body elevate word setting data to update * @return JSON response with updated setting ID and status */ @Execute public JsonResponse<ApiResult> put$setting(final EditBody body) { validateApi(body, messages -> {}); body.crudMode = CrudMode.EDIT; final ElevateWord elevateWord = getElevateWord(body).map(entity -> { try {Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 12.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/group/ApiAdminGroupAction.java
* Creates a new group setting. * * @param body group setting data to create * @return JSON response with created setting ID and status */ @Execute public JsonResponse<ApiResult> post$setting(final CreateBody body) { validateApi(body, messages -> {}); validateAttributes(body.attributes, this::throwValidationErrorApi); body.crudMode = CrudMode.CREATE;Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 8K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Callback.kt
* proceed to read the response body with [Response.body]. The response is still live until its * response body is [closed][ResponseBody]. The recipient of the callback may consume the response * body on another thread. * * Note that transport-layer success (receiving a HTTP response code, headers and body) does not
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 1.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/dataconfig/ApiAdminDataconfigAction.java
* Creates a new data config setting. * * @param body the request body containing data config information * @return JSON response with result status */ // POST /api/admin/dataconfig/setting @Execute public JsonResponse<ApiResult> post$setting(final CreateBody body) { validateApi(body, messages -> {}); body.crudMode = CrudMode.CREATE;Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 8.5K bytes - Viewed (0)