Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 81 for Proxy (0.17 sec)

  1. mockwebserver/src/main/kotlin/mockwebserver3/RecordedRequest.kt

       * attribute in the TLS handshake. Unlike the rest of the HTTP exchange, this name is sent in
       * cleartext and may be monitored or blocked by a proxy or other middlebox.
       */
      val handshakeServerNames: List<String>
    
      init {
        if (socket is SSLSocket) {
          try {
            this.handshake = socket.session.handshake()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 3.8K bytes
    - Viewed (1)
  2. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

              proxy: Proxy,
            ) = TODO()
    
            override fun secureConnectStart(call: Call) = TODO()
    
            override fun secureConnectEnd(
              call: Call,
              handshake: Handshake?,
            ) = TODO()
    
            override fun connectEnd(
              call: Call,
              inetSocketAddress: InetSocketAddress,
              proxy: Proxy,
              protocol: Protocol?,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 46.5K bytes
    - Viewed (4)
  3. okhttp/src/main/kotlin/okhttp3/internal/authenticator/JavaNetAuthenticator.kt

        val proxyAuthorization = response.code == 407
        val proxy = route?.proxy ?: Proxy.NO_PROXY
    
        for (challenge in challenges) {
          if (!"Basic".equals(challenge.scheme, ignoreCase = true)) {
            continue
          }
    
          val dns = route?.address?.dns ?: defaultDns
          val auth =
            if (proxyAuthorization) {
              val proxyAddress = proxy.address() as InetSocketAddress
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  4. 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)
  5. okhttp/src/main/kotlin/okhttp3/EventListener.kt

      }
    
      /**
       * Invoked after proxy selection.
       *
       * Note that the list of proxies is never null, but it may be a list containing
       * only [Proxy.NO_PROXY]. This comes up in several situations:
       *
       * * If neither a proxy nor proxy selector is configured.
       * * If the proxy is configured explicitly as [Proxy.NO_PROXY].
       * * If the proxy selector returns only [Proxy.NO_PROXY].
       * * If the proxy selector returns an empty list or null.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/OkHttpClientTest.kt

        var client = OkHttpClient.Builder().build()
        assertThat(client.proxy).isNull()
        assertThat(client.proxySelector)
          .isNotInstanceOf(NullProxySelector::class.java)
        client =
          OkHttpClient.Builder()
            .proxy(Proxy.NO_PROXY)
            .build()
        assertThat(client.proxy).isSameAs(Proxy.NO_PROXY)
        assertThat(client.proxySelector)
          .isInstanceOf(NullProxySelector::class.java)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectionUser.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.internal.connection
    
    import java.io.IOException
    import java.net.InetAddress
    import java.net.Proxy
    import java.net.Socket
    import okhttp3.Connection
    import okhttp3.Handshake
    import okhttp3.HttpUrl
    import okhttp3.Protocol
    import okhttp3.Route
    
    /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheInterceptor.kt

          return !"Connection".equals(fieldName, ignoreCase = true) &&
            !"Keep-Alive".equals(fieldName, ignoreCase = true) &&
            !"Proxy-Authenticate".equals(fieldName, ignoreCase = true) &&
            !"Proxy-Authorization".equals(fieldName, ignoreCase = true) &&
            !"TE".equals(fieldName, ignoreCase = true) &&
            !"Trailers".equals(fieldName, ignoreCase = true) &&
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Mar 22 07:09:21 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

      }
    
      /** Respond to a proxy authorization challenge.  */
      @ParameterizedTest
      @ArgumentsSource(ProtocolParamProvider::class)
      fun proxyAuthenticateOnConnect(
        protocol: Protocol,
        mockWebServer: MockWebServer,
      ) {
        setUp(protocol, mockWebServer)
        server.enqueue(
          MockResponse(
            code = 407,
            headers = headersOf("Proxy-Authenticate", "Basic realm=\"localhost\""),
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  10. okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt

          .assertLogMatch(Regex("""connectStart: ${url.host}/.+ DIRECT"""))
          .assertLogMatch(Regex("""connectEnd: http/1.1"""))
          .assertLogMatch(
            Regex(
              """connectionAcquired: Connection\{${url.host}:\d+, proxy=DIRECT hostAddress=${url.host}/.+ cipherSuite=none protocol=http/1\.1\}""",
            ),
          )
          .assertLogMatch(Regex("""requestHeadersStart"""))
          .assertLogMatch(Regex("""requestHeadersEnd"""))
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 10.2K bytes
    - Viewed (0)
Back to top