Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for Bunnell (0.24 sec)

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

     * ## 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
     * does not participate in any [interceptors][Interceptor] or [event listeners][EventListener]. 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)
  2. mockwebserver/src/test/java/mockwebserver3/MockResponseSniTest.kt

                  .build(),
            ),
          )
        val response = call.execute()
        assertThat(response.isSuccessful).isTrue()
    
        server.takeRequest() // Discard the CONNECT tunnel.
        return server.takeRequest()
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.9K bytes
    - Viewed (1)
  3. docs/changelogs/changelog_4x.md

        and `www.squareup.com`. If a server refuses such sharing it will return HTTP 421 and OkHttp will
        automatically retry on an unshared connection.
     *  Fix: Don't crash if a TLS tunnel's response body is truncated.
     *  Fix: Don't track unusable routes beyond their usefulness. We had a bug where we could track
        certain bad routes indefinitely; now we only track the ones that could be necessary.
    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)
  4. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        val get = server.takeRequest()
        assertThat(get.requestLine).isEqualTo("GET /foo HTTP/1.1")
        assertThat(get.headers["Proxy-Authorization"]).isNull()
      }
    
      // Don't disconnect after building a tunnel with CONNECT
      // http://code.google.com/p/android/issues/detail?id=37221
      @Test
      fun proxyWithConnectionClose() {
        server.useHttps(handshakeCertificates.sslSocketFactory())
    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)
  5. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

        }
    
        /**
         * Respond to `CONNECT` requests until a non-tunnel response is peeked. Returns true if further
         * calls should be attempted on the socket.
         */
        @Throws(IOException::class, InterruptedException::class)
        private fun processTunnelRequests(): Boolean {
          if (!dispatcher.peek().inTunnel) return true // No tunnel requests.
    
          val source = raw.source().buffer()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/http/ExchangeCodec.kt

       * That may happen later by the connection pool thread.
       */
      fun cancel()
    
      /**
       * Carries an exchange. This is usually a connection, but it could also be a connect plan for
       * CONNECT tunnels. Note that CONNECT tunnels are significantly less capable than connections.
       */
      interface Carrier {
        val route: Route
    
        fun trackFailure(
          call: RealCall,
          e: IOException?,
        )
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt

        // Make an SSL Tunnel on the first message pair of each SSL + proxy connection.
        val url = route.address.url
        val requestLine = "CONNECT ${url.toHostHeader(includeDefaultPort = true)} HTTP/1.1"
        while (true) {
          val source = this.source!!
          val sink = this.sink!!
          val tunnelCodec =
            Http1ExchangeCodec(
              // No client for CONNECT tunnels:
              client = null,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/connection/Exchange.kt

      internal var hasFailure: Boolean = false
        private set
    
      internal val connection: RealConnection
        get() = codec.carrier as? RealConnection ?: error("no connection for CONNECT tunnels")
    
      internal val isCoalescedConnection: Boolean
        get() = finder.routePlanner.address.url.host != codec.carrier.route.address.url.host
    
      @Throws(IOException::class)
      fun writeRequestHeaders(request: Request) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.2K bytes
    - Viewed (2)
  9. mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt

         * doing HTTPS through an HTTP proxy, or HTTP/2 prior knowledge through an HTTP proxy.
         *
         * When a new connection is received, all in-tunnel responses are served before the connection is
         * upgraded to HTTPS or HTTP/2.
         */
        fun inTunnel() =
          apply {
            removeHeader("Content-Length")
            inTunnel = true
          }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 13.3K bytes
    - Viewed (1)
  10. okhttp/src/main/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

     * [newFixedLengthSource(0)][newFixedLengthSource] and may skip reading and closing that source.
     */
    class Http1ExchangeCodec(
      /** The client that configures this stream. May be null for HTTPS proxy tunnels. */
      private val client: OkHttpClient?,
      override val carrier: ExchangeCodec.Carrier,
      private val source: BufferedSource,
      private val sink: BufferedSink,
    ) : ExchangeCodec {
      private var state = STATE_IDLE
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 16.2K bytes
    - Viewed (0)
Back to top