Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 578 for tbody (0.02 sec)

  1. 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)
  2. okhttp/src/jvmTest/kotlin/okhttp3/ResponseBodyTest.kt

              }.buffer()
            }
          }
        assertThat(body.source().readUtf8()).isEqualTo("hello")
        body.close()
      }
    
      @Test
      fun unicodeText() {
        val text = "eile oli oliiviõli"
        val body = text.toResponseBody()
        assertThat(body.string()).isEqualTo(text)
      }
    
      @Test
      fun unicodeTextWithCharset() {
        val text = "eile oli oliiviõli"
        val body = text.toResponseBody("text/plain; charset=UTF-8".toMediaType())
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt

            .Builder()
            .body("abc")
            .build(),
        )
        val call =
          client.newCall(
            Request
              .Builder()
              .url(server.url("/"))
              .build(),
          )
        val response = call.execute()
        assertThat(response.code).isEqualTo(200)
        assertThat(response.body.string()).isEqualTo("abc")
        response.body.close()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 60.4K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/api/admin/user/ApiAdminUserAction.java

         *
         * @param body the user data to create
         * @return JSON response containing the created user setting ID
         */
        // POST /api/admin/user/setting
        @Execute
        public JsonResponse<ApiResult> post$setting(final CreateBody body) {
            validateApi(body, messages -> {});
            body.crudMode = CrudMode.CREATE;
            final User entity = getUser(body).orElseGet(() -> {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Response.kt

      /**
       * Closes the response body. Equivalent to `body().close()`.
       *
       * Prior to OkHttp 5.0, it was an error to close a response that is not eligible for a body. This
       * includes the responses returned from [cacheResponse], [networkResponse], and [priorResponse].
       */
      override fun close() {
        body.close()
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 14:39:28 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/api/admin/relatedquery/ApiAdminRelatedqueryAction.java

         *
         * @param body the related query configuration data to create
         * @return JSON response containing the created related query ID and status
         */
        // POST /api/admin/relatedquery/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.4K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/CallServerInterceptor.kt

              if (requestBody.isDuplex()) {
                // Prepare a duplex body so that the application can send a request body later.
                exchange.flushRequest()
                val bufferedRequestBody = exchange.createRequestBody(request, true).buffer()
                requestBody.writeTo(bufferedRequestBody)
              } else {
                // Write the request body if the "Expect: 100-continue" expectation was met.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 29 22:04:11 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/helper/NotificationHelper.java

                return;
            }
            final String body = toSlackMessage(discloser);
            StreamUtil.split(slackWebhookUrls, "[,\\s]").of(stream -> stream.filter(StringUtil::isNotBlank).forEach(url -> {
                try (CurlResponse response = Curl.post(url).header("Content-Type", "application/json").body(body).execute()) {
                    if (response.getHttpStatusCode() == 200) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 6.2K bytes
    - Viewed (0)
Back to top