Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 60 for mown (0.19 sec)

  1. okhttp-sse/src/main/kotlin/okhttp3/sse/internal/ServerSentEventReader.kt

            }
    
            in 5..7 -> {
              data.writeByte('\n'.code) // 'data' on a line of its own.
            }
    
            in 8..9 -> {
              id = source.readUtf8LineStrict().takeIf { it.isNotEmpty() }
            }
    
            in 10..12 -> {
              id = null // 'id' on a line of its own.
            }
    
            in 13..14 -> {
              type = source.readUtf8LineStrict().takeIf { it.isNotEmpty() }
            }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  2. mockwebserver/README.md

      RecordedRequest request3 = server.takeRequest();
      assertEquals("/v1/chat/messages/3", request3.getPath());
    
      // Shut down the server. Instances cannot be reused.
      server.shutdown();
    }
    ```
    
    Your unit tests might move the `server` into a field so you can shut it down
    from your test's `tearDown()`.
    
    ### API
    
    #### MockResponse
    
    Mock responses default to an empty response body and a `200` status code.
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Dec 17 15:34:10 GMT 2023
    - 5K bytes
    - Viewed (1)
  3. okhttp/src/main/kotlin/okhttp3/Dns.kt

    import okhttp3.Dns.Companion.SYSTEM
    
    /**
     * A domain name service that resolves IP addresses for host names. Most applications will use the
     * [system DNS service][SYSTEM], which is the default. Some applications may provide their own
     * implementation to use a different DNS server, to prefer IPv6 addresses, to prefer IPv4 addresses,
     * or to force a specific known IP address.
     *
     * Implementations of this interface must be safe for concurrent use.
     */
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  4. docs/changelogs/changelog_4x.md

        available in those versions!
    
    
    ## Version 4.8.0
    
    _2020-07-11_
    
     *  New: Change `HeldCertificate.Builder` to use its own ASN.1 certificate encoder. This is part
        of our effort to remove the okhttp-tls module's dependency on Bouncy Castle. We think Bouncy
        Castle is great! But it's a large dependency (6.5 MiB) and its security provider feature
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt

          fileToClose?.closeQuietly()
        }
      }
    
      companion object {
        // TODO(jwilson): what to do about timeouts? They could be different and unfortunately when any
        //     timeout is hit we like to tear down the whole stream.
    
        private const val SOURCE_UPSTREAM = 1
        private const val SOURCE_FILE = 2
    
        @JvmField val PREFIX_CLEAN = "OkHttp cache v1\n".encodeUtf8()
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  6. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt

     *
     * The format of the logs created by this class should not be considered stable and may
     * change slightly between releases. If you need a stable logging format, use your own interceptor.
     */
    class HttpLoggingInterceptor
      @JvmOverloads
      constructor(
        private val logger: Logger = Logger.DEFAULT,
      ) : Interceptor {
        @Volatile private var headersToRedact = emptySet<String>()
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 11.2K bytes
    - Viewed (1)
  7. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

        val call: RealCall
          get() = this@RealCall
    
        /**
         * Attempt to enqueue this async call on [executorService]. This will attempt to clean up
         * if the executor has been shut down by reporting the call as failed.
         */
        fun executeOn(executorService: ExecutorService) {
          client.dispatcher.assertThreadDoesntHoldLock()
    
          var success = false
          try {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 17.9K bytes
    - Viewed (2)
  8. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

            .addHeader("icy-url:http://www.A2Rradio.com")
            .addHeader("Server: Icecast 2.3.3-kh8")
            .addHeader("Cache-Control: no-cache")
            .addHeader("Pragma: no-cache")
            .addHeader("Expires: Mon, 26 Jul 1997 05:00:00 GMT")
            .addHeader("icy-metaint:16000")
            .body("mp3 data")
            .build(),
        )
        val response = getResponse(newRequest("/"))
        assertThat(response.code).isEqualTo(200)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

        //
        // HttpUrl is quite lenient with what characters it accepts. In particular, characters like '{'
        // and '"' are permitted but unlikely to occur in real-world URLs. Unfortunately we can't just
        // lock it down due to URL templating: "http://{env}.{dc}.example.com".
        UrlComponentEncodingTester.newInstance()
          .nonPrintableAscii(Encoding.FORBIDDEN)
          .nonAscii(Encoding.PUNYCODE)
          .override(
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 67.9K bytes
    - Viewed (0)
  10. mockwebserver-junit5/README.md

    ```
    testRuntimeOnly("com.squareup.okhttp3:mockwebserver3-junit5:4.12.0")
    ```
    
    Then in tests annotated `@org.junit.jupiter.api.Test`, you may add a [MockWebServer] as a test
    method parameter. It will be shut down automatically after the test runs.
    
    ```
    class MyTest {
      @Test
      void test(MockWebServer server) {
        ...
      }
    }
    ```
    
    Alternately you may add the [MockWebServer] as a constructor parameter:
    
    ```
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 1.3K bytes
    - Viewed (0)
Back to top