Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 52 for effect (0.2 sec)

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

      }
    
      private fun testRequestMethod(
        requestMethod: String,
        expectCached: Boolean,
        withOverride: Boolean = false,
      ) {
        // 1. Seed the cache (potentially).
        // 2. Expect a cache hit or miss.
        server.enqueue(
          MockResponse.Builder()
            .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS))
            .addHeader("X-Response-ID: 1")
            .build(),
        )
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  2. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

              httpHeaders.add(name, value)
            } else {
              throw IllegalStateException()
            }
            if (name == "expect" && value.equals("100-continue", ignoreCase = true)) {
              // Don't read the body unless we've invited the client to send it.
              readBody = false
            }
          }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
  3. okcurl/src/main/resources/META-INF/native-image/okhttp3/okcurl/reflect-config.json

    Jesse Wilson <******@****.***> 1703114827 -0500
    Json
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 4 bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/http/HttpDateTest.kt

    import org.junit.jupiter.api.Test
    
    class HttpDateTest {
      private lateinit var originalDefault: TimeZone
    
      @BeforeEach
      fun setUp() {
        originalDefault = TimeZone.getDefault()
        // The default timezone should affect none of these tests: HTTP specified GMT, so we set it to
        // something else.
        TimeZone.setDefault(TimeZone.getTimeZone("America/Los_Angeles"))
      }
    
      @AfterEach
      @Throws(Exception::class)
      fun tearDown() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  5. CONTRIBUTING.md

    
    Code Contributions
    ------------------
    
    Get working code on a personal branch with tests passing before you submit a PR:
    
    ```
    ./gradlew clean check
    ```
    
    Please make every effort to follow existing conventions and style in order to keep the code as
    readable as possible.
    
    Contribute code changes through GitHub by forking the repository and sending a pull request. We
    squash all pull requests on merge.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Feb 14 08:26:50 GMT 2023
    - 2K bytes
    - Viewed (0)
  6. docs/contribute/contributing.md

    
    Code Contributions
    ------------------
    
    Get working code on a personal branch with tests passing before you submit a PR:
    
    ```
    ./gradlew clean check
    ```
    
    Please make every effort to follow existing conventions and style in order to keep the code as
    readable as possible.
    
    Contribute code changes through GitHub by forking the repository and sending a pull request. We
    squash all pull requests on merge.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Feb 14 08:26:50 GMT 2023
    - 2K bytes
    - Viewed (1)
  7. docs/changelogs/upgrading_to_okhttp_4.md

     * HttpLoggingInterceptor.Logger
     * LoggingEventListener.Factory
     * OkHttpClient.Builder.hostnameVerifier(HostnameVerifier)
    
    JetBrains [is working on][kotlin_sams] SAM conversions of Kotlin interfaces. Expect it in a future
    release of the Kotlin language.
    
    
    Companion Imports
    -----------------
    
    The equivalent of static methods in Java is companion object functions in Kotlin. The bytecode is
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 16:58:16 GMT 2022
    - 10.9K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/connection/FastFallbackExchangeFinderTest.kt

     * the same structure:
     *
     *  * prepare a set of plans, each with a predictable connect delay
     *  * attempt to find a connection
     *  * step through time, asserting that the expected side effects are performed.
     */
    internal class FastFallbackExchangeFinderTest {
      private val taskFaker = TaskFaker()
      private val taskRunner = taskFaker.taskRunner
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 24 04:40:49 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  9. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

            .body("response")
            .build(),
        )
        val url = server.url("/").toUrl()
        val connection = url.openConnection() as HttpURLConnection
        connection.doOutput = true
        connection.setRequestProperty("Expect", "100-Continue")
        connection.outputStream.write("request".toByteArray(UTF_8))
        val inputStream = connection.inputStream
        val reader = BufferedReader(InputStreamReader(inputStream, UTF_8))
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/http2/Hpack.kt

          Header("content-location", ""),
          Header("content-range", ""),
          Header("content-type", ""),
          Header("cookie", ""),
          Header("date", ""),
          Header("etag", ""),
          Header("expect", ""),
          Header("expires", ""),
          Header("from", ""),
          Header("host", ""),
          Header("if-match", ""),
          Header("if-modified-since", ""),
          Header("if-none-match", ""),
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 22.5K bytes
    - Viewed (1)
Back to top