Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for BR (0.11 sec)

  1. okhttp-brotli/src/main/kotlin/okhttp3/brotli/internal/Uncompress.kt

        return response
      }
      val body = response.body
      val encoding = response.header("Content-Encoding") ?: return response
    
      val decompressedSource =
        when {
          encoding.equals("br", ignoreCase = true) ->
            BrotliInputStream(body.source().inputStream()).source().buffer()
          encoding.equals("gzip", ignoreCase = true) ->
            GzipSource(body.source()).buffer()
          else -> return response
        }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 13:19:01 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  2. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

      fun bodyResponseUnknownEncoded() {
        setLevel(Level.BODY)
        server.enqueue(
          MockResponse.Builder() // It's invalid to return this if not requested, but the server might anyway
            .setHeader("Content-Encoding", "br")
            .setHeader("Content-Type", PLAIN)
            .body(Buffer().write("iwmASGVsbG8sIEhlbGxvLCBIZWxsbwoD".decodeBase64()!!))
            .build(),
        )
        val response = client.newCall(request().build()).execute()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 37.6K bytes
    - Viewed (0)
Back to top