Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 99 for Kirsty (0.38 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/-HostnamesCommon.kt

    import okhttp3.internal.idn.Punycode
    import okio.Buffer
    
    /**
     * Quick and dirty pattern to differentiate IP addresses from hostnames. This is an approximation
     * of Android's private InetAddress#isNumeric API.
     *
     * This matches IPv6 addresses as a hex string containing at least one colon, and possibly
     * including dots after the first colon. It matches IPv4 addresses as strings containing only
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  2. okhttp-sse/src/test/java/okhttp3/sse/internal/ServerSentEventIteratorTest.kt

        consumeEvents(
          """
          |: test stream
          |
          |data: first event
          |id: 1
          |
          |
          """.trimMargin(),
        )
        assertThat(callbacks.remove()).isEqualTo(Event("1", null, "first event"))
      }
    
      @Test
      fun idCleared() {
        consumeEvents(
          """
          |data: first event
          |id: 1
          |
          |data: second event
          |id
          |
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt

        private const val SOURCE_UPSTREAM = 1
        private const val SOURCE_FILE = 2
    
        @JvmField val PREFIX_CLEAN = "OkHttp cache v1\n".encodeUtf8()
    
        @JvmField val PREFIX_DIRTY = "OkHttp DIRTY :(\n".encodeUtf8()
        private const val FILE_HEADER_SIZE = 32L
    
        /**
         * Creates a new relay that reads a live stream from [upstream], using [file] to share that data
         * with other sources.
         *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/idn/Punycode.kt

        }
    
        return true
      }
    
      /** Returns a new bias. */
      private fun adapt(
        delta: Int,
        numpoints: Int,
        first: Boolean,
      ): Int {
        var delta =
          when {
            first -> delta / DAMP
            else -> delta / 2
          }
        delta += (delta / numpoints)
        var k = 0
        while (delta > ((BASE - TMIN) * TMAX) / 2) {
          delta /= (BASE - TMIN)
    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/URLConnectionTest.kt

          MockResponse(body = "This is the first server again!"),
        )
        val response = getResponse(newRequest("/"))
        assertContent("This is the 2nd server!", response)
        assertThat(response.request.url).isEqualTo(
          server2.url("/"),
        )
    
        // make sure the first server was careful to recycle the connection
        assertContent("This is the first server again!", getResponse(Request(server.url("/"))))
    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)
  6. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Certificate.kt

          return tbsCertificate.extensions.firstOrNull {
            it.id == ObjectIdentifiers.SUBJECT_ALTERNATIVE_NAME
          }
        }
    
      val basicConstraints: Extension
        get() {
          return tbsCertificate.extensions.first {
            it.id == ObjectIdentifiers.BASIC_CONSTRAINTS
          }
        }
    
      /** Returns true if the certificate was signed by [issuer]. */
      @Throws(SignatureException::class)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/publicsuffix/PublicSuffixListGenerator.kt

        }
        check(rule.length != 1) {
          """Wildcard Assertion Failure: '$rule'
    A wildcard rule was added that wildcards the first level! We'll need to change the ${PublicSuffixDatabase::class.java.name} to handle this."""
        }
      }
    
      companion object {
        private const val NEWLINE = '\n'.code
        private const val WILDCARD_CHAR = "*"
    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)
  8. okhttp/src/main/kotlin/okhttp3/Authenticator.kt

     * **reactive** authentication after receiving a challenge from either an origin web server or proxy
     * server.
     *
     * ## Preemptive Authentication
     *
     * To make HTTPS calls using an HTTP proxy server OkHttp must first negotiate a connection with
     * the proxy. This proxy connection is called a "TLS Tunnel" and is specified by
     * [RFC 2817][1]. The HTTP CONNECT request that creates this tunnel connection is special: it
    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)
  9. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/SimpleIdnaMappingTable.kt

     *
     * Comment lines are either blank or start with a `#` character. Lines may also end with a comment.
     * All comments are ignored.
     *
     * Regular lines contain fields separated by semicolons.
     *
     * The first element on each line is a single hex code point (like 0041) or a hex code point range
     * (like 0030..0039).
     *
     * The second element on each line is a mapping type, like `valid` or `mapped`.
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  10. docs/features/events.md

    0.082 responseHeadersEnd
    0.082 responseBodyStart
    0.082 responseBodyEnd
    0.083 connectionReleased
    0.083 callEnd
    ```
    
    Notice how no connect events are fired for the second call. It reused the connection from the first request for dramatically better performance.
    
    ### EventListener.Factory
    
    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)
Back to top