Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 271 for what (0.17 sec)

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

       *
       * @param method defaults to "GET" if [body] is null, and "POST" otherwise.
       */
      constructor(
        url: HttpUrl,
        headers: Headers = headersOf(),
        // '\u0000' is a sentinel value that'll choose based on what the body is:
        method: String = "\u0000",
        body: RequestBody? = null,
      ) : this(
        Builder()
          .url(url)
          .headers(headers)
          .method(
            when {
    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)
  2. okhttp/src/main/kotlin/okhttp3/Cache.kt

            }
          }
          return result ?: emptySet()
        }
    
        /**
         * Returns the subset of the headers in this's request that impact the content of this's body.
         */
        fun Response.varyHeaders(): Headers {
          // Use the request headers sent over the network, since that's what the response varies on.
          // Otherwise OkHttp-supplied headers like "Accept-Encoding: gzip" may be lost.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  3. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt

                writer: DerWriter,
                value: String,
              ) = writer.writeUtf8(value)
            },
        )
    
      /**
       * Based on International Alphabet No. 5. Note that there are bytes that IA5 and US-ASCII
       * disagree on interpretation.
       *
       * TODO(jwilson): constrain to IA5 characters.
       */
      val IA5_STRING =
        BasicDerAdapter(
          name = "IA5 STRING",
    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)
  4. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

     * stores information-per-URL will need to either canonicalize manually, or suffer unnecessary
     * redundancy for such URLs.
     *
     * Because they don't attempt canonical form, these classes are surprisingly difficult to use
     * securely. Suppose you're building a webservice that checks that incoming paths are prefixed
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 63.5K bytes
    - Viewed (1)
  5. docs/security/tls_configuration_history.md

    
    [OkHttp 3.5][OkHttp35]
    ----------------------
    
    _2016-11-30_
    
    Remove three old cipher suites and add five new ones. This tracks changes in what's available on
    Android and Java, and also what cipher suites recent releases of Chrome and Firefox support by
    default.
    
    ##### MODERN_TLS / COMPATIBLE_TLS cipher suites
    
     * TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 16:35:36 GMT 2022
    - 9K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt

      val b0 = this[index].code
      val b1 = this[index + 1].code
      return (b0 shl 7) + b1
    }
    
    /**
     * An extremely generic binary search that doesn't know what data it's searching over. The caller
     * provides indexes and a comparison function, and this calls that function iteratively.
     *
     * @return the index of the match. If no match is found this is `(-1 - insertionPoint)`, where the
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Apr 02 11:39:58 GMT 2024
    - 9K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt

        serverListener.assertClosing(1000, "goodbye")
    
        // Confirm that the hard cancel occurred after 500 ms.
        clientListener.assertFailure()
        val elapsedUntilFailure = System.nanoTime() - closeAtNanos
        assertThat(TimeUnit.NANOSECONDS.toMillis(elapsedUntilFailure).toDouble())
          .isCloseTo(500.0, 250.0)
    
        // Close the server and confirm it saw what we expected.
        server.close(1000, null)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 35.2K bytes
    - Viewed (1)
  8. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

        // Find the longest-idle connections in 2 categories:
        //
        //  1. OLD: Connections that have been idle for at least keepAliveDurationNs. We close these if
        //     we find them, regardless of what the address policies need.
        //
        //  2. EVICTABLE: Connections not required by any address policy. This matches connections that
        //     don't participate in any policy, plus connections whose policies won't be violated if the
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 16.2K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        // Verify the peer received what was expected.
        assertThat(peer.takeFrame().type).isEqualTo(Http2.TYPE_HEADERS)
        assertThat(peer.takeFrame().type).isEqualTo(Http2.TYPE_RST_STREAM)
      }
    
      /**
       * Confirm that the client times out if the server stalls after 3 bytes. After the timeout the
       * connection is still considered healthy while we await the degraded pong. When that doesn't
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 75.4K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

        }
      }
    
      fun readTimeout(): Timeout = readTimeout
    
      fun writeTimeout(): Timeout = writeTimeout
    
      /** Returns a source that reads data from the peer. */
      fun getSource(): Source = source
    
      /**
       * Returns a sink that can be used to write data to the peer.
       *
       * @throws IllegalStateException if this stream was initiated by the peer and a [writeHeaders] has
       *     not yet been sent.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 23.2K bytes
    - Viewed (1)
Back to top