Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 355 for Mulder (0.14 sec)

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

        server.enqueue(
          MockResponse.Builder()
            .code(HttpURLConnection.HTTP_MOVED_TEMP)
            .setHeader("Location", otherServer.url("/"))
            .build(),
        )
        otherServer.enqueue(
          MockResponse.Builder()
            .headersDelay(500, TimeUnit.MILLISECONDS)
            .build(),
        )
        val request = Request.Builder().url(server.url("/")).build()
        val call = client.newCall(request)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/Request.kt

     * immutable.
     */
    class Request internal constructor(builder: Builder) {
      @get:JvmName("url")
      val url: HttpUrl = checkNotNull(builder.url) { "url == null" }
    
      @get:JvmName("method")
      val method: String = builder.method
    
      @get:JvmName("headers")
      val headers: Headers = builder.headers.build()
    
      @get:JvmName("body")
      val body: RequestBody? = builder.body
    
      @get:JvmName("cacheUrlOverride")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:17:44 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/MultipartBodyTest.kt

          |--AaB03x--
          |
          """.trimMargin().replace("\n", "\r\n")
        val body =
          MultipartBody.Builder("AaB03x")
            .setType(MultipartBody.FORM)
            .addFormDataPart("submit-name", "Larry")
            .addFormDataPart(
              "files",
              null,
              MultipartBody.Builder("BbC04y")
                .addPart(
                  headersOf("Content-Disposition", "file; filename=\"file1.txt\""),
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt

        builder = builder.heldCertificate(heldCertificate, heldCertificate.certificate())
        builder = builder.addTrustedCertificate(heldCertificate.certificate())
      }
    
      @Test @Disabled
      fun heldCertificate() {
        val heldCertificate: HeldCertificate = HeldCertificate.Builder().build()
        val certificate: X509Certificate = heldCertificate.certificate()
        val keyPair: KeyPair = heldCertificate.keyPair()
      }
    
      @Test @Disabled
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/RequestTest.kt

      @Test
      fun emptyNameForbidden() {
        val builder = Request.Builder()
        assertFailsWith<IllegalArgumentException> {
          builder.header("", "Value")
        }
        assertFailsWith<IllegalArgumentException> {
          builder.addHeader("", "Value")
        }
      }
    
      @Test
      fun headerAllowsTabOnlyInValues() {
        val builder = Request.Builder()
        builder.header("key", "sample\tvalue")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/ConnectionSpecTest.kt

          ConnectionSpec.Builder(ConnectionSpec.MODERN_TLS)
            .tlsVersions(*arrayOf<String>())
            .build()
        }.also { expected ->
          assertThat(expected.message)
            .isEqualTo("At least one TLS version is required")
        }
      }
    
      @Test
      fun noCipherSuites() {
        assertFailsWith<IllegalArgumentException> {
          ConnectionSpec.Builder(ConnectionSpec.MODERN_TLS)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/InterceptorTest.kt

      }
    
      private fun addInterceptor(
        network: Boolean,
        interceptor: Interceptor,
      ) {
        val builder = client.newBuilder()
        if (network) {
          builder.addNetworkInterceptor(interceptor)
        } else {
          builder.addInterceptor(interceptor)
        }
        client = builder.build()
      }
    
      /** Catches exceptions that are otherwise headed for the uncaught exception handler.  */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 27.8K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt

          MockResponse.Builder()
            .code(408)
            .build(),
        )
        webServer.enqueue(
          MockResponse.Builder()
            .webSocketUpgrade(serverListener)
            .build(),
        )
        val webSocket: WebSocket = newWebSocket()
        clientListener.assertOpen()
        val server = serverListener.assertOpen()
        webSocket.send("abc")
        serverListener.assertTextMessage("abc")
        server.send("def")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 35.2K bytes
    - Viewed (1)
  9. okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt

      return millis.toInt()
    }
    
    internal fun List<Header>.toHeaders(): Headers {
      val builder = Headers.Builder()
      for ((name, value) in this) {
        builder.addLenient(name.utf8(), value.utf8())
      }
      return builder.build()
    }
    
    internal fun Headers.toHeaderList(): List<Header> =
      (0 until size).map {
        Header(name(it), value(it))
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheInterceptor.kt

    /*
     *  Licensed to the Apache Software Foundation (ASF) under one or more
     *  contributor license agreements.  See the NOTICE file distributed with
     *  this work for additional information regarding copyright ownership.
     *  The ASF licenses this file to You under the Apache License, Version 2.0
     *  (the "License"); you may not use this file except in compliance with
     *  the License.  You may obtain a copy of the License at
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Mar 22 07:09:21 GMT 2024
    - 10.2K bytes
    - Viewed (0)
Back to top