Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 106 for Case (0.17 sec)

  1. okhttp-hpacktests/src/test/java/okhttp3/internal/http2/hpackjson/Case.kt

    package okhttp3.internal.http2.hpackjson
    
    import okhttp3.internal.http2.Header
    import okio.ByteString
    
    /**
     * Representation of an individual case (set of headers and wire format). There are many cases for a
     * single story.  This class is used reflectively with Moshi to parse stories.
     */
    data class Case(
      val seqno: Int = 0,
      val wire: ByteString? = null,
      val headers: List<Map<String, String>>,
    ) : Cloneable {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Dec 23 10:26:25 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  2. okhttp-hpacktests/src/test/java/okhttp3/internal/http2/HpackRoundTripTest.kt

        assumeFalse(
          story === Story.MISSING,
          "Test stories missing, checkout git submodule",
        )
    
        val newCases = mutableListOf<Case>()
        for (case in story.cases) {
          hpackWriter.writeHeaders(case.headersList)
          newCases += case.copy(wire = bytesOut.readByteString())
        }
    
        testDecoder(story.copy(cases = newCases))
      }
    
      companion object {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2K bytes
    - Viewed (0)
  3. .gitmodules

    [submodule "okhttp-hpacktests/src/test/resources/hpack-test-case"]
    	path = okhttp-hpacktests/src/test/resources/hpack-test-case
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Dec 10 09:33:37 GMT 2022
    - 182 bytes
    - Viewed (0)
  4. mockwebserver/README.md

            switch (request.getPath()) {
                case "/v1/login/auth/":
                    return new MockResponse().setResponseCode(200);
                case "/v1/check/version/":
                    return new MockResponse().setResponseCode(200).setBody("version=9");
                case "/v1/profile/info":
    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)
  5. okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt

         *
         * ## Upstream
         *
         * In this case the current thread is assigned as the upstream reader. We read bytes from
         * upstream and copy them to both the file and to the buffer. Finally we release the upstream
         * reader lock and return the new bytes.
         *
         * ## The file
         *
         * In this case we copy bytes from the file to the [sink].
         *
         * ## The buffer
         *
    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-hpacktests/src/test/java/okhttp3/internal/http2/HpackDecodeTestBase.kt

    import okhttp3.internal.http2.hpackjson.HpackJsonUtil
    import okhttp3.internal.http2.hpackjson.Story
    import okio.Buffer
    
    /**
     * Tests Hpack implementation using https://github.com/http2jp/hpack-test-case/
     */
    open class HpackDecodeTestBase {
      private val bytesIn = Buffer()
      private val hpackReader = Hpack.Reader(bytesIn, 4096)
    
      protected fun testDecoder(story: Story) {
        for (testCase in story.cases) {
    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)
  7. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt

        fun redactHeader(name: String) {
          val newHeadersToRedact = TreeSet(String.CASE_INSENSITIVE_ORDER)
          newHeadersToRedact += headersToRedact
          newHeadersToRedact += name
          headersToRedact = newHeadersToRedact
        }
    
        fun redactQueryParams(vararg name: String) {
          val newQueryParamsNameToRedact = TreeSet(String.CASE_INSENSITIVE_ORDER)
          newQueryParamsNameToRedact += queryParamsNameToRedact
    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)
  8. okhttp/src/main/kotlin/okhttp3/Authenticator.kt

     * ```
     *
     * ## Reactive Authentication
     *
     * Implementations authenticate by returning a follow-up request that includes an authorization
     * header, or they may decline the challenge by returning null. In this case the unauthenticated
     * response will be returned to the caller that triggered it.
     *
     * Implementations should check if the initial request already included an attempt to
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  9. docs/features/events.md

    ![Events Diagram](../assets/images/******@****.***)
    
    ### Events with Retries and Follow-Ups
    
    OkHttp is resilient and can automatically recover from some connectivity failures. In this case, the `connectFailed()` event is not terminal and not followed by `callFailed()`. Event listeners will receive multiple events of the same type when retries are attempted.
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 7.7K bytes
    - Viewed (0)
  10. okhttp/src/test/resources/okhttp3/internal/idn/rfc3454.B.2.txt

       0042; 0062; Case map
       0043; 0063; Case map
       0044; 0064; Case map
       0045; 0065; Case map
       0046; 0066; Case map
       0047; 0067; Case map
       0048; 0068; Case map
       0049; 0069; Case map
       004A; 006A; Case map
       004B; 006B; Case map
       004C; 006C; Case map
       004D; 006D; Case map
       004E; 006E; Case map
       004F; 006F; Case map
       0050; 0070; Case map
       0051; 0071; Case map
       0052; 0072; Case map
    Plain Text
    - Registered: Fri Mar 29 11:42:11 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 38.8K bytes
    - Viewed (0)
Back to top