Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for informal (0.24 sec)

  1. samples/compare/src/test/kotlin/okhttp3/compare/JavaHttpClientTest.kt

    import assertk.assertions.isEqualTo
    import assertk.assertions.isNotNull
    import assertk.assertions.isNull
    import assertk.assertions.matches
    import java.net.http.HttpClient
    import java.net.http.HttpClient.Redirect.NORMAL
    import java.net.http.HttpRequest
    import java.net.http.HttpResponse.BodyHandlers
    import mockwebserver3.MockResponse
    import mockwebserver3.MockWebServer
    import okhttp3.testing.PlatformRule
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/ws/WebSocketWriterTest.kt

        serverWriter.writeMessageFrame(OPCODE_BINARY, payload)
        assertData("8232")
        assertData(payload)
      }
    
      @Test fun serverMessageLengthShort() {
        // Create a payload which will overflow the normal payload byte size.
        val payload = Buffer()
        while (payload.completeSegmentByteCount() <= PAYLOAD_BYTE_MAX) {
          payload.writeByte('0'.code)
        }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingConnectionListener.kt

    import okhttp3.internal.connection.RealConnection
    import okio.IOException
    import org.junit.jupiter.api.Assertions
    
    open class RecordingConnectionListener(
      /**
       * An override to ignore the normal order that is enforced.
       * EventListeners added by Interceptors will not see all events.
       */
      private val enforceOrder: Boolean = true,
    ) : ConnectionListener() {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/EventListener.kt

       * Response and normal event sequences will not be received.
       *
       * This event will only be received when a Cache is configured for the client.
       */
      open fun cacheHit(
        call: Call,
        response: Response,
      ) {
      }
    
      /**
       * Invoked when a response will be served from the network. The Response will be
       * available from normal event sequences.
       *
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/WebSocket.kt

    import okio.ByteString
    
    /**
     * A non-blocking interface to a web socket. Use the [factory][WebSocket.Factory] to create
     * instances; usually this is [OkHttpClient].
     *
     * ## Web Socket Lifecycle
     *
     * Upon normal operation each web socket progresses through a sequence of states:
     *
     *  * **Connecting:** the initial state of each web socket. Messages may be enqueued but they won't
     *    be transmitted until the web socket is open.
     *
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  6. docs/assets/css/app.css

        font-weight: 400;
        font-style: normal
    }
    
    @font-face {
        font-family: cash-market;
        src: url("https://cash-f.squarecdn.com/static/fonts/cash-market/v2/CashMarket-Medium.woff2") format("woff2");
        font-weight: 500;
        font-style: normal
    }
    
    @font-face {
        font-family: cash-market;
    CSS
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Tue Feb 08 07:57:03 GMT 2022
    - 1.1K bytes
    - Viewed (4)
  7. docs/features/caching.md

    Cache Events are exposed via the EventListener API.  Typical scenarios are below.
    
    ### Cache Hit
    
    In the ideal scenario the cache can fulfill the request without any conditional call to the network.
    This will skip the normal events such as DNS, connecting to the network, and downloading the response body.
    
    As recommended by the HTTP RFC the max age of a document is defaulted to 10% of the 
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 3.1K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/concurrent/TaskRunnerRealBackendTest.kt

          log.put("normal task running")
          return@schedule -1L
        }
    
        queue.idleLatch().await(500, TimeUnit.MILLISECONDS)
    
        assertThat(log.take()).isEqualTo("failing task running")
        assertThat(log.take()).isEqualTo("uncaught exception: java.lang.RuntimeException: boom!")
        assertThat(log.take()).isEqualTo("normal task running")
        assertThat(log).isEmpty()
      }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt

          sink.writeInt(lastGoodStreamId)
          sink.writeInt(errorCode.httpCode)
          if (debugData.isNotEmpty()) {
            sink.write(debugData)
          }
          sink.flush()
        }
      }
    
      /**
       * Inform peer that an additional `windowSizeIncrement` bytes can be sent on `streamId`, or the
       * connection if `streamId` is zero.
       */
      @Throws(IOException::class)
      fun windowUpdate(
        streamId: Int,
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt

      fun nextFrame(
        requireSettings: Boolean,
        handler: Handler,
      ): Boolean {
        try {
          source.require(9) // Frame header size.
        } catch (e: EOFException) {
          return false // This might be a normal socket close.
        }
    
        //  0                   1                   2                   3
        //  0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 19.9K bytes
    - Viewed (0)
Back to top