Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for design (0.13 sec)

  1. samples/guide/src/test/kotlin/okhttp3/AllMainsTest.kt

      }
    
      @Suppress("UNUSED_PARAMETER")
      private fun expectedFailure(
        className: String,
        cause: Throwable,
      ): Boolean {
        return when (className) {
          "okhttp3.recipes.CheckHandshake" -> true // by design
          "okhttp3.recipes.RequestBodyCompression" -> true // expired token
          else -> false
        }
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  2. mockwebserver/src/main/kotlin/mockwebserver3/MockResponseBody.kt

    package mockwebserver3
    
    import java.io.IOException
    import okhttp3.ExperimentalOkHttpApi
    import okio.BufferedSink
    
    /**
     * The body of a [MockResponse].
     *
     * Unlike [okhttp3.ResponseBody], this interface is designed to be implemented by writers and not
     * called by readers.
     */
    @ExperimentalOkHttpApi
    interface MockResponseBody {
      /** The length of this response in bytes, or -1 if unknown. */
      val contentLength: Long
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  3. README.md

    centers. OkHttp supports modern TLS features (TLS 1.3, ALPN, certificate pinning). It can be
    configured to fall back for broad connectivity.
    
    Using OkHttp is easy. Its request/response API is designed with fluent builders and immutability. It
    supports both synchronous blocking calls and async calls with callbacks.
    
    
    Get a URL
    ---------
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 6.2K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/RequestBody.kt

       * may be sent after response headers or body bytes have been received.
       *
       * Though any call may be initiated as a duplex call, only web servers that are specially
       * designed for this nonstandard interaction will use it. As of 2019-01, the only widely-used
       * implementation of this pattern is [gRPC][grpc].
       *
       * Because the encoding of interleaved data is not well-defined for HTTP/1, duplex request
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Jan 25 14:41:37 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/Protocol.kt

       */
      H2_PRIOR_KNOWLEDGE("h2_prior_knowledge"),
    
      /**
       * QUIC (Quick UDP Internet Connection) is a new multiplexed and secure transport atop UDP,
       * designed from the ground up and optimized for HTTP/2 semantics. HTTP/1.1 semantics are layered
       * on HTTP/2.
       *
       * QUIC is not natively supported by OkHttp, but provided to allow a theoretical interceptor that
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:17:33 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/SocketChannelTest.kt

            .build()
        }
      private var acceptedHostName: String? = null
    
      private lateinit var server: MockWebServer
    
      @BeforeEach
      fun setUp(server: MockWebServer) {
        this.server = server
    
        // Test designed for Conscrypt and JSSE
        platform.assumeNotBouncyCastle()
      }
    
      @ParameterizedTest
      @MethodSource("connectionTypes")
      fun testConnection(socketMode: SocketMode) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8K bytes
    - Viewed (0)
Back to top