Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 30 for ignoreCase (1.57 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

      private val headersReader = HeadersReader(socket.source)
    
      private val Response.isChunked: Boolean
        get() = "chunked".equals(header("Transfer-Encoding"), ignoreCase = true)
    
      private val Request.isChunked: Boolean
        get() = "chunked".equals(header("Transfer-Encoding"), ignoreCase = true)
    
      /**
       * Trailers received when the response body became exhausted.
       *
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  2. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

            }
    
            var reuseSocket = true
            val requestWantsSocket = "Upgrade".equals(request.headers["Connection"], ignoreCase = true)
            val requestWantsWebSocket =
              requestWantsSocket &&
                "websocket".equals(request.headers["Upgrade"], ignoreCase = true)
            val responseWantsSocket = response.socketHandler != null
            val responseWantsWebSocket = response.webSocketListener != null
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 02 20:36:00 UTC 2025
    - 40.3K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/BridgeInterceptor.kt

        val responseBuilder =
          networkResponse
            .newBuilder()
            .request(networkRequest)
    
        if (transparentGzip &&
          "gzip".equals(networkResponse.header("Content-Encoding"), ignoreCase = true) &&
          networkResponse.promisesBody()
        ) {
          val responseBody = networkResponse.body
          if (responseBody != null) {
            val gzipSource = GzipSource(responseBody.source())
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/MediaType.kt

       * such a parameter.
       */
      fun parameter(name: String): String? {
        for (i in parameterNamesAndValues.indices step 2) {
          if (parameterNamesAndValues[i].equals(name, ignoreCase = true)) {
            return parameterNamesAndValues[i + 1]
          }
        }
        return null
      }
    
      @JvmName("-deprecated_type")
      @Deprecated(
        message = "moved to val",
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:51:08 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/SocksProxy.kt

              val domainName = fromSource.readUtf8(domainNameLength.toLong())
              // Resolve HOSTNAME_THAT_ONLY_THE_PROXY_KNOWS to localhost.
              when {
                domainName.equals(HOSTNAME_THAT_ONLY_THE_PROXY_KNOWS, ignoreCase = true) -> {
                  InetAddress.getByName("localhost")
                }
                else -> InetAddress.getByName(domainName)
              }
            }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/RealWebSocket.kt

        if (!"Upgrade".equals(headerConnection, ignoreCase = true)) {
          throw ProtocolException(
            "Expected 'Connection' header value 'Upgrade' but was '$headerConnection'",
          )
        }
    
        val headerUpgrade = response.header("Upgrade")
        if (!"websocket".equals(headerUpgrade, ignoreCase = true)) {
          throw ProtocolException(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 21.6K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectPlan.kt

              nextRequest = route.address.proxyAuthenticator.authenticate(route, response)
                ?: throw IOException("Failed to authenticate with proxy")
    
              if ("close".equals(response.header("Connection"), ignoreCase = true)) {
                return nextRequest
              }
            }
    
            else -> throw IOException("Unexpected response code for CONNECT: ${response.code}")
          }
        }
      }
    
      /**
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/idn/Punycode.kt

       */
      private fun decodeLabel(
        string: String,
        pos: Int,
        limit: Int,
        result: Buffer,
      ): Boolean {
        if (!string.regionMatches(pos, PREFIX_STRING, 0, 4, ignoreCase = true)) {
          result.writeUtf8(string, pos, limit)
          return true
        }
    
        var pos = pos + 4 // 'xn--'.size.
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cache.kt

         */
        private fun Headers.varyFields(): Set<String> {
          var result: MutableSet<String>? = null
          for (i in 0 until size) {
            if (!"Vary".equals(name(i), ignoreCase = true)) {
              continue
            }
    
            val value = value(i)
            if (result == null) {
              result = TreeSet(String.CASE_INSENSITIVE_ORDER)
            }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

          .assertCode(200)
          .assertBody("success!")
    
        assertThat(proxySelector.failures)
          .all {
            hasSize(1)
            index(0).matches(".* Connect timed out".toRegex(RegexOption.IGNORE_CASE))
          }
      }
    
      /** https://github.com/square/okhttp/issues/4875  */
      @Test
      fun interceptorRecoversWhenRoutesExhausted() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 146.6K bytes
    - Viewed (0)
Back to top