Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for user1 (0.27 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt

        user.addPlanToCancel(this)
        try {
          user.connectStart(route)
    
          connectSocket()
          success = true
          return ConnectResult(plan = this)
        } catch (e: IOException) {
          user.connectFailed(route, null, e)
          return ConnectResult(plan = this, throwable = e)
        } finally {
          user.removePlanToCancel(this)
          if (!success) {
    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)
  2. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

      @Test
      fun sensitiveQueryParamsAreRedacted() {
        url = server.url("/api/login?user=test_user&authentication=basic&password=confidential_password")
        val networkInterceptor =
          HttpLoggingInterceptor(networkLogs).setLevel(
            Level.BASIC,
          )
        networkInterceptor.redactQueryParams("user", "passWord")
    
        val applicationInterceptor =
          HttpLoggingInterceptor(applicationLogs).setLevel(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 37.6K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/Response.kt

      /**
       * The request that initiated this HTTP response. This is not necessarily the same request issued
       * by the application:
       *
       * * It may be transformed by the user's interceptors. For example, an application interceptor
       *   may add headers like `User-Agent`.
       * * It may be the request generated in response to an HTTP redirect or authentication
       *   challenge. In this case the request URL may be different than the initial request URL.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/CertificatePinner.kt

     * certificate authorities. It also prevents connections through man-in-the-middle certificate
     * authorities either known or unknown to the application's user.
     * This class currently pins a certificate's Subject Public Key Info as described on
     * [Adam Langley's Weblog][langley]. Pins are either base64 SHA-256 hashes as in
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 14.2K bytes
    - Viewed (1)
  5. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

              "[h2_prior_knowledge, http/1.1]",
          )
        }
      }
    
      @Test
      fun testH2PriorKnowledgeServerDuplicates() {
        try {
          // Treating this use case as user error
          server.protocols = listOf(Protocol.H2_PRIOR_KNOWLEDGE, Protocol.H2_PRIOR_KNOWLEDGE)
          fail<Any>()
        } catch (expected: IllegalArgumentException) {
          assertThat(expected.message).isEqualTo(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/Cache.kt

     * responses. Although this client honors all [HTTP/1.1 (RFC 7234)][rfc_7234] cache headers, it
     * doesn't cache partial responses.
     *
     * ## Force a Network Response
     *
     * In some situations, such as after a user clicks a 'refresh' button, it may be necessary to skip
     * the cache, and fetch data directly from the server. To force a full refresh, add the `no-cache`
     * directive:
     *
     * ```java
     * Request request = new Request.Builder()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt

            .method("CONNECT", null)
            .header("Host", route.address.url.toHostHeader(includeDefaultPort = true))
            .header("Proxy-Connection", "Keep-Alive") // For HTTP/1.0 proxies like Squid.
            .header("User-Agent", USER_AGENT)
            .build()
    
        val fakeAuthChallengeResponse =
          Response.Builder()
            .request(proxyConnectRequest)
            .protocol(Protocol.HTTP_1_1)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 12K bytes
    - Viewed (0)
  8. docs/changelogs/changelog_2x.md

        `NullPointerException`.
     *  Fix: Include a backwards-compatible `OkHttp-Response-Source` header with
        `OkUrlFactory `responses.
     *  Fix: Don't include a default User-Agent header in requests made with the Call
        API. Requests made with OkUrlFactory will continue to have a default user
        agent.
     *  New: Guava-like API to create headers:
    
        ```java
        Headers headers = Headers.of(name1, value1, name2, value2, ...).
        ```
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 26.6K bytes
    - Viewed (0)
  9. CHANGELOG.md

    **This release introduces new Kotlin-friendly APIs.** When we migrated OkHttp from Java to Kotlin in
    OkHttp 4.0, we kept our Java-first APIs. With 5.0 we're continuing to support Java and adding
    additional improvements for Kotlin users. In this alpha we're excited to skip-the-builder for
    requests and remove a common source of non-null assertions (`!!`) on the response body.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:31:39 GMT 2024
    - 21.4K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

      // This ensures that we never wait for a blocking operation while holding 'this'.
    
      /** True if this peer initiated the connection. */
      internal val client: Boolean = builder.client
    
      /** User code to run in response to incoming streams or settings. */
      internal val listener: Listener = builder.listener
      internal val streams = mutableMapOf<Int, Http2Stream>()
      internal val connectionName: String = builder.connectionName
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 32.6K bytes
    - Viewed (0)
Back to top