Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 62 for Weaver (0.16 sec)

  1. okhttp/src/main/kotlin/okhttp3/CertificatePinner.kt

     *
     * ## Warning: Certificate Pinning is Dangerous!
     *
     * Pinning certificates limits your server team's abilities to update their TLS certificates. By
     * pinning certificates, you take on additional operational complexity and limit your ability to
     * migrate between certificate authorities. Do not use certificate pinning without the blessing of
     * your server's TLS administrator!
     *
     * ### Note about self-signed certificates
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 14.2K bytes
    - Viewed (1)
  2. okhttp/src/test/java/okhttp3/internal/connection/RouteSelectorTest.kt

        val address = factory.newAddress()
        proxySelector.proxies.add(Proxy.NO_PROXY)
        val routeSelector = newRouteSelector(address)
        proxySelector.assertRequests(address.url.toUri())
    
        // Only the origin server will be attempted.
        assertThat(routeSelector.hasNext()).isTrue()
        dns[uriHost] = dns.allocate(1)
        val selection = routeSelector.next()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Mar 06 17:33:38 GMT 2024
    - 20.8K bytes
    - Viewed (0)
  3. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

     * is used to verify the signature of the "www.squareup.com" certificate.
     *
     * This roles are reversed for client authentication. In that case the client has a private key and
     * a chain of certificates. The server uses a set of trusted root certificates to authenticate the
     * client. Subject alternative names are not used for client authentication.
     */
    @Suppress("DEPRECATION")
    class HeldCertificate(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.6K bytes
    - Viewed (1)
  4. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt

          override fun matches(header: DerHeader): Boolean = true
    
          override fun fromDer(reader: DerReader): AnyValue {
            reader.read("ANY") { header ->
              val bytes = reader.readUnknown()
              return AnyValue(
                tagClass = header.tagClass,
                tag = header.tag,
                constructed = header.constructed,
                length = header.length,
                bytes = bytes,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15K bytes
    - Viewed (0)
  5. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/CertificateAdapters.kt

        object : DerAdapter<Long> {
          override fun matches(header: DerHeader): Boolean {
            return Adapters.UTC_TIME.matches(header) || Adapters.GENERALIZED_TIME.matches(header)
          }
    
          override fun fromDer(reader: DerReader): Long {
            val peekHeader =
              reader.peekHeader()
                ?: throw ProtocolException("expected time but was exhausted at $reader")
    
            return when {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.6K bytes
    - Viewed (1)
  6. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt

     */
    class Http2Reader(
      /** Creates a frame reader with max header table size of 4096. */
      private val source: BufferedSource,
      private val client: Boolean,
    ) : Closeable {
      private val continuation: ContinuationSource = ContinuationSource(this.source)
      private val hpackReader: Hpack.Reader =
        Hpack.Reader(
          source = continuation,
          headerTableSizeSetting = 4096,
        )
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/ResponseBody.kt

       *
       * Otherwise if the response has a `Content-Type` header that specifies a charset, that is used
       * to determine the charset of the response bytes.
       *
       * Otherwise the response bytes are decoded as UTF-8.
       */
      fun charStream(): Reader =
        reader ?: BomAwareReader(source(), charset()).also {
          reader = it
        }
    
      /**
       * Returns the response as a string.
       *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/http2/HpackTest.kt

            "custom-foo",
            "custom-header",
            "custom-bar",
            "custom-header",
            "custom-baz",
            "custom-header",
          )
        bytesIn.writeByte(0x40) // Literal indexed
        bytesIn.writeByte(0x0a) // Literal name (len = 10)
        bytesIn.writeUtf8("custom-foo")
        bytesIn.writeByte(0x0d) // Literal value (len = 13)
        bytesIn.writeUtf8("custom-header")
        bytesIn.writeByte(0x40) // Literal indexed
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 38.2K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/InterceptorTest.kt

      val clientTestRule = OkHttpClientTestRule()
      private lateinit var server: MockWebServer
      private var client = clientTestRule.newClient()
      private val callback = RecordingCallback()
    
      @BeforeEach
      fun setUp(server: MockWebServer) {
        this.server = server
      }
    
      @Test
      fun applicationInterceptorsCanShortCircuitResponses() {
        server.shutdown() // Accept no connections.
        val request =
          Request.Builder()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 27.8K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/Request.kt

        open fun url(url: URL) = url(url.toString().toHttpUrl())
    
        /**
         * Sets the header named [name] to [value]. If this request already has any headers
         * with that name, they are all replaced.
         */
        open fun header(
          name: String,
          value: String,
        ) = commonHeader(name, value)
    
        /**
         * Adds a header with [name] and [value]. Prefer this method for multiply-valued
         * headers like "Cookie".
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:17:44 GMT 2024
    - 10.5K bytes
    - Viewed (0)
Back to top