Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 622 for responsive (0.05 sec)

  1. README.md

    ```java
    OkHttpClient client = new OkHttpClient();
    
    String run(String url) throws IOException {
      Request request = new Request.Builder()
          .url(url)
          .build();
    
      try (Response response = client.newCall(request).execute()) {
        return response.body().string();
      }
    }
    ```
    
    
    Post to a Server
    ----------------
    
    This program posts data to a service. [Full source][post_example].
    
    ```java
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 07:33:49 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/curl/CurlResponseTest.java

            assertEquals(statusCode, response.getHttpStatusCode());
        }
    
        @Test
        public void testEncoding() {
            CurlResponse response = new CurlResponse();
            String encoding = "UTF-8";
    
            response.setEncoding(encoding);
    
            assertEquals(encoding, response.getEncoding());
        }
    
        @Test
        public void testContentException() {
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/TrailersTest.kt

        call.execute().use { response ->
          val source = response.body.source()
          assertThat(response.header("h1")).isEqualTo("v1")
          assertThat(response.peekTrailers()).isNull()
          assertThat(source.readUtf8()).isEqualTo(responseBody)
          assertThat(response.peekTrailers()).isEqualTo(headersOf("t1", "v2"))
          assertThat(response.peekTrailers()).isEqualTo(headersOf("t1", "v2")) // Idempotent.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 07 18:57:05 UTC 2025
    - 18K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt

              .build(),
          )
        var response = call.execute()
        assertThat(response.code).isEqualTo(200)
        assertThat(response.body.string()).isEqualTo("abc")
        response.close()
        listener.clearAllEvents()
        call = call.clone()
        response = call.execute()
        assertThat(response.code).isEqualTo(200)
        assertThat(response.body.string()).isEqualTo("abc")
        response.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)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/CallServerInterceptor.kt

            }
            response =
              responseBuilder
                .request(request)
                .handshake(exchange.connection.handshake())
                .sentRequestAtMillis(sentRequestMillis)
                .receivedResponseAtMillis(System.currentTimeMillis())
                .build()
            code = response.code
          }
    
          exchange.responseHeadersEnd(response)
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 29 22:04:11 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/EventListener.kt

      }
    
      /**
       * Invoked immediately after receiving response headers.
       *
       * This method is always invoked after [responseHeadersStart].
       *
       * @param response the response received over the network. It is an error to access the body of
       *     this response.
       */
      open fun responseHeadersEnd(
        call: Call,
        response: Response,
      ) {
      }
    
      /**
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:58:02 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Authenticator.kt

     * to limit the retries by the class of errors and number of attempts.  To get the number of
     * attempts to the current point use this function.
     *
     * ```java
     * private int responseCount(Response response) {
     *   int result = 1;
     *   while ((response = response.priorResponse()) != null) {
     *     result++;
     *   }
     *   return result;
     * }
     * ```
     *
     * [1]: https://tools.ietf.org/html/rfc2817
     */
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

      }
    
      override fun reportedContentLength(response: Response): Long =
        when {
          !response.promisesBody() -> 0L
          response.isChunked -> -1L
          else -> response.headersContentLength()
        }
    
      override fun openResponseBodySource(response: Response): Source =
        when {
          !response.promisesBody() -> newFixedLengthSource(response.request.url, 0)
          response.isChunked -> newChunkedSource(response.request.url)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt

      }
    
      @Test
      fun response() {
        val response: Response = Response.Builder().build()
        val request: Request = response.request
        val protocol: Protocol = response.protocol
        val code: Int = response.code
        val successful: Boolean = response.isSuccessful
        val message: String = response.message
        val handshake: Handshake? = response.handshake
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 46.5K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/KotlinDeprecationErrorTest.kt

      }
    
      @Test @Disabled
      fun response() {
        val response: Response = Response.Builder().build()
        val request: Request = response.request()
        val protocol: Protocol = response.protocol()
        val code: Int = response.code()
        val message: String = response.message()
        val handshake: Handshake? = response.handshake()
        val headers: Headers = response.headers()
        val body: ResponseBody = response.body()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top