Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for html (0.18 sec)

  1. samples/static-server/src/main/java/okhttp3/sample/SampleServer.java

        response.append(String.format("<html><head><title>%s</title></head><body>", basePath));
        response.append(String.format("<h1>%s</h1>", basePath));
        for (String file : directory.list()) {
          response.append(String.format("<div class='file'><a href='%s'>%s</a></div>",
              basePath + file, file));
        }
        response.append("</body></html>");
    
        return new MockResponse()
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Jan 02 02:50:44 GMT 2019
    - 4.7K 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. docs/features/events.md

    ### EventListener
    
    Subclass [EventListener](https://square.github.io/okhttp/3.x/okhttp/okhttp3/EventListener.html) and override methods for the events you are interested in. In a successful HTTP call with no redirects or retries the sequence of events is described by this flow.
    
    ![Events Diagram](../assets/images/******@****.***)
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 7.7K bytes
    - Viewed (0)
  8. 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)
  9. okhttp/src/main/kotlin/okhttp3/internal/connection/InetAddressOrder.kt

     *
     * The current implementation does not address any of:
     *  - Async DNS split by IP class
     *  - Stateful handling of connectivity results
     *  - The prioritisation of addresses
     *
     * https://datatracker.ietf.org/doc/html/rfc8305#section-4
     */
    fun reorderForHappyEyeballs(addresses: List<InetAddress>): List<InetAddress> {
      if (addresses.size < 2) {
        return addresses
      }
    
      val (ipv6, ipv4) = addresses.partition { it is Inet6Address }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  10. docs/security/security_providers.md

    All providers support HTTP/1.1 and TLSv1.2.
    
    
    [BoringSSL]: https://boringssl.googlesource.com/boringssl/
    [Bouncy Castle]: https://www.bouncycastle.org/java.html
    [Conscrypt]: https://www.conscrypt.org/
    [Corretto]: https://github.com/corretto/amazon-corretto-crypto-provider
    [GraalVM]: https://www.graalvm.org/
    [OpenJDK]: https://openjdk.java.net/groups/security/
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 1.7K bytes
    - Viewed (0)
Back to top