Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 67 for html (0.16 sec)

  1. docs/changelogs/changelog_4x.md

     [okio_3_6_0]: https://square.github.io/okio/changelog/#version-360
     [public_suffix]: https://publicsuffix.org/
     [rfc_2045]: https://tools.ietf.org/html/rfc2045
     [rfc_7231_647]: https://tools.ietf.org/html/rfc7231#section-6.4.7
     [rfc_7692]: https://tools.ietf.org/html/rfc7692
     [semver]: https://semver.org/
    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)
  2. samples/compare/src/test/kotlin/okhttp3/compare/ApacheHttpClientTest.kt

    import org.apache.hc.core5.http.io.entity.EntityUtils
    import org.junit.jupiter.api.AfterEach
    import org.junit.jupiter.api.Test
    
    /**
     * Apache HttpClient 5.x.
     *
     * https://hc.apache.org/httpcomponents-client-5.0.x/index.html
     *
     * Baseline test if we ned to validate OkHttp behaviour against other popular clients.
     */
    class ApacheHttpClientTest {
      private val httpClient = HttpClients.createDefault()
    
      @AfterEach fun tearDown() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  3. samples/compare/src/test/kotlin/okhttp3/compare/JavaHttpClientTest.kt

    import okhttp3.testing.PlatformVersion
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.extension.RegisterExtension
    
    /**
     * Java HTTP Client.
     *
     * https://openjdk.java.net/groups/net/httpclient/intro.html
     *
     * Baseline test if we ned to validate OkHttp behaviour against other popular clients.
     */
    class JavaHttpClientTest {
      @JvmField @RegisterExtension
      val platform = PlatformRule()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/idn/Punycode.kt

     *
     * Partner this class with [UTS #46] to implement IDNA2008 [RFC 5890] like most browsers do.
     *
     * [RFC 3492]: https://datatracker.ietf.org/doc/html/rfc3492
     * [RFC 5890]: https://datatracker.ietf.org/doc/html/rfc5890
     * [UTS #46]: https://www.unicode.org/reports/tr46/
     */
    object Punycode {
      val PREFIX_STRING = "xn--"
      val PREFIX = PREFIX_STRING.encodeUtf8()
    
      private const val BASE = 36
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 03 03:04:50 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/idn/PunycodeTest.kt

     */
    package okhttp3.internal.idn
    
    import kotlin.test.Test
    import kotlin.test.assertEquals
    import kotlin.test.assertNull
    
    class PunycodeTest {
      /** https://datatracker.ietf.org/doc/html/rfc3492#section-7.1 */
      @Test fun rfc3492Samples() {
        // (A) Arabic (Egyptian)
        testEncodeDecode(
          unicode = "ليهمابتكلموشعربي؟",
          punycode = "xn--egbpdaj6bu4bxfgehfvwxn",
        )
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/Authenticator.kt

     *   int result = 1;
     *   while ((response = response.priorResponse()) != null) {
     *     result++;
     *   }
     *   return result;
     * }
     * ```
     *
     * [1]: https://tools.ietf.org/html/rfc2817
     */
    fun interface Authenticator {
      /**
       * Returns a request that includes a credential to satisfy an authentication challenge in
       * [response]. Returns null if the challenge cannot be satisfied.
       *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/http2/Huffman.kt

     *  * `com.twitter.hpack.HuffmanDecoder`
     *  * `com.twitter.hpack.HpackUtil`
     *
     * [twitter_hpack]: https://github.com/twitter/hpack
     */
    object Huffman {
      // Appendix C: Huffman Codes
      // http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-12#appendix-B
      private val CODES =
        intArrayOf(
          0x1ff8, 0x7fffd8, 0xfffffe2, 0xfffffe3, 0xfffffe4, 0xfffffe5, 0xfffffe6,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/platform/Platform.kt

            return jdkWithJettyBoot
          }
    
          return Platform()
        }
    
        /**
         * Returns the concatenation of 8-bit, length prefixed protocol names.
         * http://tools.ietf.org/html/draft-agl-tls-nextprotoneg-04#page-4
         */
        fun concatLengthPrefixed(protocols: List<Protocol>): ByteArray {
          val result = Buffer()
          for (protocol in alpnProtocolNames(protocols)) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.8K bytes
    - Viewed (1)
  9. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

        assertThat(base.resolve("ht-tp//b/")).isEqualTo(parse("http://a/ht-tp//b/"))
        assertThat(base.resolve("ht.tp//b/")).isEqualTo(parse("http://a/ht.tp//b/"))
      }
    
      /**
       * https://tools.ietf.org/html/rfc3986#section-5.4.1
       */
      @Test
      fun rfc3886NormalExamples() {
        val url = parse("http://a/b/c/d;p?q")
        // No 'g:' scheme in HttpUrl.
        assertThat(url.resolve("g:h")).isNull()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 67.9K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        client =
          client.newBuilder()
            .dns(FakeDns())
            .build()
        assertFailsWith<UnknownHostException> {
          getResponse(
            Request.Builder()
              .url("http://1234.1.1.1/index.html".toHttpUrl())
              .build(),
          )
        }
      }
    
      private fun testServerClosesOutput(socketPolicy: SocketPolicy) {
        server.enqueue(
          MockResponse(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
Back to top