Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for 205 (0.25 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http/CallServerInterceptor.kt

            "close".equals(response.header("Connection"), ignoreCase = true)
          ) {
            exchange.noNewExchangesOnConnection()
          }
          if ((code == 204 || code == 205) && response.body.contentLength() > 0L) {
            throw ProtocolException(
              "HTTP $code had non-zero Content-Length: ${response.body.contentLength()}",
            )
          }
          return response
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.3K bytes
    - Viewed (1)
  2. docs/changelogs/changelog_2x.md

     *  Fix: Don't log gzipped data in the logging interceptor.
     *  Fix: Don't resolve DNS addresses when connecting through a SOCKS proxy.
     *  Fix: Drop the synthetic `OkHttp-Selected-Protocol` response header.
     *  Fix: Support 204 and 205 'No Content' replies in the logging interceptor.
     *  New: Add `Call.isExecuted()`.
    
    
    ## Version 2.6.0
    
    _2015-11-22_
    
     *  **New Logging Interceptor.** The `logging-interceptor` subproject offers
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 26.6K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/CacheTest.kt

        assertCached(false, 101)
        assertCached(true, 200)
        assertCached(false, 201)
        assertCached(false, 202)
        assertCached(true, 203)
        assertCached(true, 204)
        assertCached(false, 205)
        assertCached(false, 206) // Electing to not cache partial responses
        assertCached(false, 207)
        assertCached(true, 300)
        assertCached(true, 301)
        assertCached(true, 302)
        assertCached(false, 303)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  4. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

          .assertNoMoreLogs()
      }
    
      @Test
      fun bodyGet204() {
        setLevel(Level.BODY)
        bodyGetNoBody(204)
      }
    
      @Test
      fun bodyGet205() {
        setLevel(Level.BODY)
        bodyGetNoBody(205)
      }
    
      private fun bodyGetNoBody(code: Int) {
        server.enqueue(
          MockResponse.Builder()
            .status("HTTP/1.1 $code No Content")
            .build(),
        )
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 37.6K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/CallTest.kt

      }
    
      @Test
      fun http205WithBodyDisallowed() {
        server.enqueue(
          MockResponse(
            code = 205,
            body = "I'm not even supposed to be here today.",
          ),
        )
        executeSynchronously("/")
          .assertFailure("HTTP 205 had non-zero Content-Length: 39")
      }
    
      @Test
      fun httpWithExcessiveHeaders() {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
Back to top