- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 113 for BODY (0.01 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/TrailersTest.kt
response.trailers() } } } private fun MockResponse.Builder.body( protocol: Protocol, body: String, ) = apply { when (protocol) { Protocol.HTTP_1_1 -> chunkedBody(body, 1024) // Force multiple chunks. else -> body(body) } } private fun enableProtocol(protocol: Protocol) { if (protocol == Protocol.HTTP_2) {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jul 07 18:57:05 UTC 2025 - 18K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Response.kt
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jul 28 14:39:28 UTC 2025 - 18.1K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt
): Sink = when { request.body?.isDuplex() == true -> throw ProtocolException( "Duplex connections are not supported for HTTP/1", ) request.isChunked -> newChunkedSink() // Stream a request body of unknown length. contentLength != -1L -> newKnownLengthSink() // Stream a request body of a known length. else -> // Stream a request body of a known length. throw IllegalStateException(
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 17.5K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ConnectionReuseTest.kt
val response2 = client.newCall(request).execute() response1.body.string() // Discard the response body. response2.body.string() // Discard the response body. assertThat(server.takeRequest().exchangeIndex).isEqualTo(0) assertThat(server.takeRequest().exchangeIndex).isEqualTo(1) } @Test fun connectionsAreEvicted() { server.enqueue(MockResponse(body = "a")) server.enqueue(MockResponse(body = "b"))
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 12.2K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/MultipartBody.kt
message = "moved to val", replaceWith = ReplaceWith(expression = "body"), level = DeprecationLevel.ERROR, ) fun body(): RequestBody = body companion object { @JvmStatic fun create(body: RequestBody): Part = create(null, body) @JvmStatic fun create( headers: Headers?, body: RequestBody, ): Part {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 10.9K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/badword/ApiAdminBadwordAction.java
* * @param body the request body containing updated bad word information * @return JSON response with result status */ @Execute public JsonResponse<ApiResult> put$setting(final EditBody body) { validateApi(body, messages -> {}); body.crudMode = CrudMode.EDIT; final BadWord badWord = getBadWord(body).map(entity -> { try {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 10.3K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt
} public fun body(body: Buffer): Builder = body(body.toMockResponseBody()) public fun body(body: MockResponseBody): Builder = apply { setHeader("Content-Length", body.contentLength) this.body = body } /** Sets the response body to the UTF-8 encoded bytes of [body]. */ public fun body(body: String): Builder = body(Buffer().writeUtf8(body))
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 17.8K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/ResponseBody.kt
* closes its response body. If you invoke [Call.execute] or implement [Callback.onResponse] you * must close this body by calling any of the following methods: * * * `Response.close()` * * `Response.body().close()` * * `Response.body().source().close()` * * `Response.body().charStream().close()` * * `Response.body().byteStream().close()` * * `Response.body().bytes()` * * `Response.body().string()` *
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue May 27 14:51:25 UTC 2025 - 11.6K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Request.kt
open fun post(body: RequestBody): Builder = method("POST", body) @JvmOverloads open fun delete(body: RequestBody? = RequestBody.EMPTY): Builder = method("DELETE", body) open fun put(body: RequestBody): Builder = method("PUT", body) open fun patch(body: RequestBody): Builder = method("PATCH", body) open fun query(body: RequestBody): Builder = method("QUERY", body)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 16 09:39:51 UTC 2025 - 13.1K bytes - Viewed (1) -
okhttp/src/jvmTest/kotlin/okhttp3/RequestTest.kt
assertThat(body.contentLength()).isEqualTo(3) assertThat(bodyToHex(body)).isEqualTo("616263") assertThat(bodyToHex(body), "Retransmit body").isEqualTo("616263") } @Test fun byteArrayRange() { val contentType = "text/plain".toMediaType() val body: RequestBody = ".abcd".toByteArray().toRequestBody(contentType, 1, 3) assertThat(body.contentType()).isEqualTo(contentType)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 16 09:39:51 UTC 2025 - 19K bytes - Viewed (0)