Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 97 for tool (2.85 sec)

  1. docs/contribute/concurrency.md

    ## Connection Pool
    
    A primary responsibility for any HTTP client is to efficiently manage network connections. Creating and establishing new connections require a fair amount of overhead and added latency. OkHttp will make every effort to reuse existing connections to avoid this overhead and added latency.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 16:35:36 GMT 2022
    - 7K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt

      var uriPort: Int = 1
    
      fun newConnection(
        pool: RealConnectionPool,
        route: Route,
        idleAtNanos: Long = Long.MAX_VALUE,
        taskRunner: TaskRunner = this.taskRunner,
      ): RealConnection {
        val result =
          RealConnection.newTestConnection(
            taskRunner = taskRunner,
            connectionPool = pool,
            route = route,
            socket = Socket(),
            idleAtNs = idleAtNanos,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  3. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

       *
       * [rfc_7468]: https://tools.ietf.org/html/rfc7468
       */
      fun certificatePem(): String = certificate.certificatePem()
    
      /**
       * Returns the private key encoded in [PKCS #8][rfc_5208] [PEM format][rfc_7468].
       *
       * [rfc_5208]: https://tools.ietf.org/html/rfc5208
       * [rfc_7468]: https://tools.ietf.org/html/rfc7468
       */
      fun privateKeyPkcs8Pem(): String {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.6K bytes
    - Viewed (1)
  4. okcurl/build.gradle.kts

    import com.vanniktech.maven.publish.JavadocJar
    import com.vanniktech.maven.publish.KotlinJvm
    import org.apache.tools.ant.taskdefs.condition.Os
    
    plugins {
      kotlin("jvm")
      id("org.jetbrains.dokka")
      id("com.vanniktech.maven.publish.base")
      id("com.palantir.graal")
      id("com.github.johnrengelman.shadow")
    }
    
    val copyResourcesTemplates = tasks.register<Copy>("copyResourcesTemplates") {
      from("src/main/resources-templates")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 1.8K bytes
    - Viewed (1)
  5. okhttp/src/main/kotlin/okhttp3/CookieJar.kt

     * database to hold accepted cookies. The [cookie storage model][rfc_6265_53] specifies policies for
     * updating and expiring cookies.
     *
     * [rfc_6265_53]: https://tools.ietf.org/html/rfc6265#section-5.3
     */
    interface CookieJar {
      /**
       * Saves [cookies] from an HTTP response to this store according to this jar's policy.
       *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/tls/OkHostnameVerifier.kt

        }
    
        // Optimization: check whether hostname is too short to match the pattern. hostName must be at
        // least as long as the pattern because asterisk must match the whole left-most label and
        // hostname starts with a non-empty label. Thus, asterisk has to match one or more characters.
        if (hostname.length < pattern.length) {
          return false // Hostname too short to match the pattern.
        }
    
        if ("*." == pattern) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/CertificatePinner.kt

     *
     * The easiest way to pin a host is turn on pinning with a broken configuration and read the
     * expected configuration when the connection fails. Be sure to do this on a trusted network, and
     * without man-in-the-middle tools like [Charles][charles] or [Fiddler][fiddler].
     *
     * For example, to pin `https://publicobject.com`, start with a broken configuration:
     *
     * ```java
     * String hostname = "publicobject.com";
    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)
  8. okhttp/src/main/kotlin/okhttp3/internal/connection/FastFallbackExchangeFinder.kt

              // We have a connected TCP connection. Cancel and defer the racing connects that all lost.
              cancelInFlightConnects()
    
              // Finish connecting. We won't have to if the winner is from the connection pool.
              if (!connectResult.plan.isReady) {
                connectResult = connectResult.plan.connectTlsEtc()
              }
    
              if (connectResult.isSuccess) {
                return connectResult.plan.handleSuccess()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketExtensions.kt

     *  * If `server_max_window_bits` is less than 15, OkHttp will waste memory on an oversized buffer.
     *
     * See [RFC 7692, 7.1][rfc_7692] for details on negotiation process.
     *
     * [rfc_7692]: https://tools.ietf.org/html/rfc7692#section-7.1
     */
    @IgnoreJRERequirement // As of AGP 3.4.1, D8 desugars API 24 hashCode methods.
    data class WebSocketExtensions(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

              newFixedLengthSource(contentLength)
            } else {
              newUnknownLengthSource()
            }
          }
        }
      }
    
      override fun trailers(): Headers {
        check(state == STATE_CLOSED) { "too early; can't read the trailers yet" }
        return trailers ?: EMPTY_HEADERS
      }
    
      override fun flushRequest() {
        sink.flush()
      }
    
      override fun finishRequest() {
        sink.flush()
      }
    
    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