Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 77 for mime (0.14 sec)

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

     * limitations under the License.
     */
    package okhttp3
    
    import assertk.assertThat
    import assertk.assertions.containsExactly
    import assertk.assertions.isEqualTo
    import assertk.assertions.isNull
    import java.time.Instant
    import java.util.Date
    import okhttp3.Headers.Companion.headersOf
    import org.junit.jupiter.api.Test
    
    class HeadersKotlinTest {
      @Test fun getOperator() {
        val headers = headersOf("a", "b", "c", "d")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Dec 21 01:54:49 GMT 2023
    - 2K bytes
    - Viewed (0)
  2. okhttp-coroutines/src/test/kotlin/okhttp3/SuspendCallTest.kt

    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import assertk.assertions.isTrue
    import java.io.IOException
    import java.util.concurrent.TimeUnit
    import kotlin.test.assertFailsWith
    import kotlin.time.Duration.Companion.seconds
    import kotlinx.coroutines.CancellationException
    import kotlinx.coroutines.Dispatchers
    import kotlinx.coroutines.ExperimentalCoroutinesApi
    import kotlinx.coroutines.TimeoutCancellationException
    Plain Text
    - Registered: Fri Apr 12 11:42:09 GMT 2024
    - Last Modified: Fri Apr 05 11:25:23 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http2/PushObserver.kt

    /**
     * [HTTP/2][Protocol.HTTP_2] only. Processes server-initiated HTTP requests on the client.
     * Implementations must quickly dispatch callbacks to avoid creating a bottleneck.
     *
     * While [onReset] may occur at any time, the following callbacks are expected in order,
     * correlated by stream ID.
     *
     *  * [onRequest]
     *  * [onHeaders] (unless canceled)
     *  * [onData] (optional sequence of data frames)
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  4. CHANGELOG.md

        is used by servers to defend against Cross-Site Request Forgery (CSRF) attacks.
    
     *  New: Log the total time of the HTTP call in `HttpLoggingInterceptor`.
    
     *  New: `OkHttpClient.Builder` now has APIs that use `kotlin.time.Duration`.
    
     *  New: `mockwebserver3.SocketPolicy` is now a sealed interface. This is one of several
    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)
  5. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

     * limitations under the License.
     */
    package okhttp3
    
    import android.annotation.SuppressLint
    import java.net.Proxy
    import java.net.ProxySelector
    import java.net.Socket
    import java.time.Duration
    import java.util.Collections
    import java.util.Random
    import java.util.concurrent.ExecutorService
    import java.util.concurrent.TimeUnit
    import java.util.concurrent.TimeUnit.MILLISECONDS
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:21:33 GMT 2024
    - 52K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/HeadersJvmTest.kt

     * limitations under the License.
     */
    package okhttp3
    
    import assertk.assertThat
    import assertk.assertions.containsExactly
    import assertk.assertions.isEqualTo
    import java.time.Instant
    import java.util.Date
    import kotlin.test.assertFailsWith
    import okhttp3.Headers.Companion.toHeaders
    import okhttp3.internal.EMPTY_HEADERS
    import org.junit.jupiter.api.Test
    
    class HeadersJvmTest {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/CallKotlinTest.kt

    import assertk.assertions.isEqualTo
    import assertk.assertions.isInstanceOf
    import assertk.assertions.isNotSameAs
    import java.io.IOException
    import java.net.Proxy
    import java.security.cert.X509Certificate
    import java.time.Duration
    import kotlin.test.assertFailsWith
    import mockwebserver3.MockResponse
    import mockwebserver3.MockWebServer
    import mockwebserver3.SocketPolicy.DisconnectAtStart
    import mockwebserver3.SocketPolicy.ShutdownOutputAtEnd
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/ConnectionListenerTest.kt

    import assertk.assertions.hasMessage
    import assertk.assertions.isEqualTo
    import assertk.assertions.isIn
    import java.io.IOException
    import java.net.InetSocketAddress
    import java.net.UnknownHostException
    import java.time.Duration
    import java.util.Arrays
    import java.util.concurrent.TimeUnit
    import kotlin.test.assertFailsWith
    import mockwebserver3.MockResponse
    import mockwebserver3.MockWebServer
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt

       * should immediately invoke this method again until it returns false.
       *
       * This method may only be invoked by the writer thread. There may be only thread invoking this
       * method at a time.
       */
      @Throws(IOException::class)
      internal fun writeOneFrame(): Boolean {
        val writer: WebSocketWriter?
        val pong: ByteString?
        var messageOrClose: Any? = null
        var receivedCloseCode = -1
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/CookieTest.kt

            .build()
        assertThat(cookie.toString()).isEqualTo("a=b; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/")
      }
    
      @Test fun builderClampsMinDate() {
        val cookie =
          Cookie.Builder()
            .name("a")
            .value("b")
            .hostOnlyDomain("example.com")
            .expiresAt(date("1970-01-01T00:00:00.000+0000").time)
            .build()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 24.3K bytes
    - Viewed (0)
Back to top