Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 77 for its (0.13 sec)

  1. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        assertThat(server.takeRequest().sequenceNumber).isEqualTo(0)
        assertThat(
          server.takeRequest().sequenceNumber,
          "When connection: close is used, each request should get its own connection",
        ).isEqualTo(0)
      }
    
      @Test
      fun connectionCloseInResponse() {
        server.enqueue(MockResponse(headers = headersOf("Connection", "close")))
        server.enqueue(MockResponse())
    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)
  2. docs/contribute/concurrency.md

    ### Threads
    
    #### Application's calling thread
    
    The application-layer must block on writing I/O. We can't return from a write until we've pushed its bytes onto the socket. Otherwise, if the write fails we are unable to deliver its IOException to the application. We would have told the application layer that the write succeeded, but it didn't!
    
    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)
  3. mockwebserver/src/main/kotlin/mockwebserver3/RecordedRequest.kt

      val bodySize: Long,
      /** The body of this POST request. This may be truncated. */
      val body: Buffer,
      /**
       * The index of this request on its HTTP connection. Since a single HTTP connection may serve
       * multiple requests, each request is assigned its own sequence number.
       */
      val sequenceNumber: Int,
      socket: Socket,
      /**
    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)
  4. docs/features/calls.md

    # Calls
    
    The HTTP client’s job is to accept your request and produce its response. This is simple in theory but it gets tricky in practice.
    
    ## [Requests](https://square.github.io/okhttp/4.x/okhttp/okhttp3/-request/)
    
    Each HTTP request contains a URL, a method (like `GET` or `POST`), and a list of headers. Requests may also contain a body: a data stream of a specific content type.
    
    ## [Responses](https://square.github.io/okhttp/4.x/okhttp/okhttp3/-response/)
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 3.9K bytes
    - Viewed (0)
  5. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

    import okhttp3.tls.internal.der.Validity
    import okio.ByteString
    import okio.ByteString.Companion.decodeBase64
    import okio.ByteString.Companion.toByteString
    
    /**
     * A certificate and its private key. These are some properties of certificates that are used with
     * TLS:
     *
     *  * **A common name.** This is a string identifier for the certificate. It usually describes the
    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)
  6. docs/features/connections.md

    Connections
    ===========
    
    Although you provide only the URL, OkHttp plans its connection to your webserver using three types: URL, Address, and Route.
    
    ### [URLs](https://square.github.io/okhttp/4.x/okhttp/okhttp3/-http-url/)
    
    URLs (like `https://github.com/square/okhttp`) are fundamental to HTTP and the Internet. In addition to being a universal, decentralized naming scheme for everything on the web, they also specify how to access web resources.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Feb 21 03:33:59 GMT 2022
    - 5.4K bytes
    - Viewed (0)
  7. docs/changelogs/changelog_3x.md

    
    ## Version 3.11.0
    
    _2018-07-12_
    
     *  **OkHttp's new okhttp-tls submodule tames HTTPS and TLS.**
    
        `HeldCertificate` is a TLS certificate and its private key. Generate a certificate with its
        builder then use it to sign another certificate or perform a TLS handshake. The
        `certificatePem()` method encodes the certificate in the familiar PEM format
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Viewed (0)
  8. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/BasicDerAdapter.kt

          return
        }
    
        writer.write(name, tagClass, tag) {
          codec.encode(writer, value)
        }
      }
    
      /**
       * Returns a copy with a context tag. This should be used when the type is ambiguous on its own.
       * For example, the tags in this schema are 0 and 1:
       *
       * ```
       * Point ::= SEQUENCE {
       *   x [0] INTEGER OPTIONAL,
       *   y [1] INTEGER OPTIONAL
       * }
       * ```
       *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/connection/FastFallbackExchangeFinder.kt

      }
    
      /**
       * Returns non-null if we don't need to wait for the launched result. In such cases, this result
       * must be processed before whatever is waiting in the queue because we may have already acquired
       * its connection.
       */
      private fun launchTcpConnect(): ConnectResult? {
        val plan =
          when {
            routePlanner.hasNext() -> {
              try {
                routePlanner.plan()
    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)
  10. okhttp/src/main/kotlin/okhttp3/Response.kt

     * value that may be consumed only once and then closed. All other properties are immutable.
     *
     * This class implements [Closeable]. Closing it simply closes its response body. See
     * [ResponseBody] for an explanation and examples.
     */
    class Response internal constructor(
      /**
       * The request that initiated this HTTP response. This is not necessarily the same request issued
    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)
Back to top