Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for Spring (0.16 sec)

  1. okhttp/src/test/java/okhttp3/internal/http2/MockHttp2Peer.kt

          this.associatedStreamId = associatedStreamId
          this.headerBlock = headerBlock
        }
    
        override fun alternateService(
          streamId: Int,
          origin: String,
          protocol: ByteString,
          host: String,
          port: Int,
          maxAge: Long,
        ) {
          throw UnsupportedOperationException()
        }
      }
    
      companion object {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

        return exchange?.hasFailure == true &&
          exchangeFinder!!.routePlanner.hasNext(exchange?.connection)
      }
    
      /**
       * Returns a string that describes this call. Doesn't include a full URL as that might contain
       * sensitive information.
       */
      private fun toLoggableString(): String {
        return (
          (if (isCanceled()) "canceled " else "") +
            (if (forWebSocket) "web socket" else "call") +
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 17.9K bytes
    - Viewed (2)
  3. okhttp/src/test/java/okhttp3/internal/publicsuffix/PublicSuffixListGenerator.kt

                sortedRules.add(rule)
              }
            }
          }
    
          ImportResults(sortedRules, sortedExceptionRules, totalRuleBytes, totalExceptionRuleBytes)
        }
    
      private fun String.toRule(): ByteString? {
        if (trim { it <= ' ' }.isEmpty() || startsWith("//")) return null
        if (contains(WILDCARD_CHAR)) {
          assertWildcardRule(this)
        }
        return encodeUtf8()
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:24:38 GMT 2024
    - 6K bytes
    - Viewed (0)
  4. docs/changelogs/changelog_4x.md

        these in logs, metrics, and even test cases to confirm your cache headers are configured as
        expected.
    
     *  New: Constant string `okhttp3.VERSION`. This is a string like "4.5.0-RC1", "4.5.0", or
        "4.6.0-SNAPSHOT" indicating the version of OkHttp in the current runtime. Use this to include
        the OkHttp version in custom `User-Agent` headers.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

          Unit
        }
    
        if (noNewExchangesEvent) {
          connectionListener.noNewExchanges(this)
        }
      }
    
      override fun protocol(): Protocol = protocol!!
    
      override fun toString(): String {
        return "Connection{${route.address.url.host}:${route.address.url.port}," +
          " proxy=${route.proxy}" +
          " hostAddress=${route.socketAddress}" +
          " cipherSuite=${handshake?.cipherSuite ?: "none"}" +
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/tls/OkHostnameVerifier.kt

       * they can return ASCII characters that match real hostnames.
       */
      private fun String.asciiToLowercase(): String {
        return when {
          isAscii() -> lowercase(Locale.US) // This is an ASCII string.
          else -> this
        }
      }
    
      /** Returns true if the [String] is ASCII encoded (0-127). */
      private fun String.isAscii() = length == utf8Size().toInt()
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/-CacheControlCommon.kt

          val parameter: String?
    
          if (pos == value.length || value[pos] == ',' || value[pos] == ';') {
            pos++ // Consume ',' or ';' (if necessary).
            parameter = null
          } else {
            pos++ // Consume '='.
            pos = value.indexOfNonWhitespace(pos)
    
            if (pos < value.length && value[pos] == '\"') {
              // Quoted string.
              pos++ // Consume '"' open quote.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  8. okhttp-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt

      var sslSocketFactory: SSLSocketFactory? = handshakeCertificates.sslSocketFactory()
      var hostnameVerifier: HostnameVerifier? = HttpsURLConnection.getDefaultHostnameVerifier()
      var uriHost: String = "example.com"
      var uriPort: Int = 1
    
      fun newConnection(
        pool: RealConnectionPool,
        route: Route,
        idleAtNanos: Long = Long.MAX_VALUE,
        taskRunner: TaskRunner = this.taskRunner,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/cache2/RelayTest.kt

          }
          source.close()
          buffer.readByteString()
        }
      }
    
      private fun assertFile(
        prefix: ByteString,
        upstreamSize: Long,
        metadataSize: Int,
        upstream: String?,
        metadata: ByteString?,
      ) {
        val source = file.source().buffer()
        assertThat(source.readByteString(prefix.size.toLong())).isEqualTo(prefix)
        assertThat(source.readLong()).isEqualTo(upstreamSize)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

        val response2 = call2.execute()
        val call3 = client.newCall(Request(server.url("/")))
        val response3 = call3.execute()
        assertThat(response1.body.string()).isEqualTo("ABC")
        assertThat(response2.body.string()).isEqualTo("DEF")
        assertThat(response3.body.string()).isEqualTo("GHI")
        // Settings connection.
        assertThat(server.takeRequest().sequenceNumber).isEqualTo(0)
        // Reuse settings connection.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 75.3K bytes
    - Viewed (0)
Back to top