Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 36 for ok (0.11 sec)

  1. okhttp-coroutines/src/test/kotlin/okhttp3/SuspendCallTest.kt

      private class ClosableCall : FailingCall() {
        private val response =
          Response.Builder()
            .request(Request("https://example.com/".toHttpUrl()))
            .protocol(Protocol.HTTP_1_1)
            .message("OK")
            .code(200)
            .body(
              object : ResponseBody() {
                override fun contentType() = null
    
                override fun contentLength() = -1L
    
                override fun source() =
    Plain Text
    - Registered: Fri Apr 12 11:42:09 GMT 2024
    - Last Modified: Fri Apr 05 11:25:23 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  2. okhttp-brotli/src/test/java/okhttp3/brotli/BrotliInterceptorTest.kt

        bodyHex: ByteString,
        fn: Response.Builder.() -> Unit = {},
      ): Response {
        return Response.Builder()
          .body(bodyHex.toResponseBody("text/plain".toMediaType()))
          .code(200)
          .message("OK")
          .request(Request.Builder().url(url).build())
          .protocol(Protocol.HTTP_2)
          .apply(fn)
          .build()
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  3. okhttp-brotli/src/test/java/okhttp3/brotli/BrotliBombTest.kt

    class BrotliBombTest {
      /** https://github.com/square/okhttp/issues/7738 */
      @Test
      fun testDecompressBomb() {
        val response =
          Response.Builder()
            .code(200)
            .message("OK")
            .header("Content-Encoding", "br")
            .request(Request.Builder().url("https://example.com/").build())
            .body(readBrotli10G().toResponseBody())
            .protocol(Protocol.HTTP_2)
            .build()
    
    Plain Text
    - Registered: Fri Mar 29 11:42:11 GMT 2024
    - Last Modified: Mon Jan 29 22:50:20 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  4. android-test/README.md

    ...
    > Task :android-test:connectedDebugAndroidTest
    ...
    11:55:40 V/InstrumentationResultParser: Time: 13.271
    11:55:40 V/InstrumentationResultParser:
    11:55:40 V/InstrumentationResultParser: OK (12 tests)
    ...
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Feb 14 08:26:50 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheStrategy.kt

    import java.net.HttpURLConnection.HTTP_NOT_FOUND
    import java.net.HttpURLConnection.HTTP_NOT_IMPLEMENTED
    import java.net.HttpURLConnection.HTTP_NO_CONTENT
    import java.net.HttpURLConnection.HTTP_OK
    import java.net.HttpURLConnection.HTTP_REQ_TOO_LONG
    import java.util.Date
    import java.util.concurrent.TimeUnit.SECONDS
    import okhttp3.Request
    import okhttp3.Response
    import okhttp3.internal.http.HTTP_PERM_REDIRECT
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 12K bytes
    - Viewed (0)
  6. okhttp-coroutines/src/test/kotlin/okhttp3/coroutines/ExecuteAsyncTest.kt

      private class ClosableCall : FailingCall() {
        private val response =
          Response.Builder()
            .request(Request("https://example.com/".toHttpUrl()))
            .protocol(Protocol.HTTP_1_1)
            .message("OK")
            .code(200)
            .body(
              object : ResponseBody() {
                override fun contentType() = null
    
                override fun contentLength() = -1L
    
                override fun source() =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:24:38 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/HeadersJvmTest.kt

          Headers.Builder().add("foo bar")
        }
      }
    
      @Test fun addThrowsOnMultiColon() {
        assertFailsWith<IllegalArgumentException> {
          Headers.Builder().add(":status: 200 OK")
        }
      }
    
      @Test fun addUnsafeNonAsciiRejectsUnicodeName() {
        assertFailsWith<IllegalArgumentException> {
          Headers.Builder()
            .addUnsafeNonAscii("héader1", "value1")
            .build()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  8. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockResponse.kt

        apply {
          this.status = status
        }
    
      fun setResponseCode(code: Int): MockResponse {
        val reason =
          when (code) {
            in 100..199 -> "Informational"
            in 200..299 -> "OK"
            in 300..399 -> "Redirection"
            in 400..499 -> "Client Error"
            in 500..599 -> "Server Error"
            else -> "Mock Response"
          }
        return apply { status = "HTTP/1.1 $code $reason" }
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/ws/RealWebSocketTest.kt

        ) {
          val url = "http://example.com/websocket"
          val response =
            Response.Builder()
              .code(101)
              .message("OK")
              .request(Request.Builder().url(url).build())
              .headers(responseHeaders!!)
              .protocol(Protocol.HTTP_1_1)
              .build()
          webSocket =
            RealWebSocket(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 01:59:58 GMT 2024
    - 18.5K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/DuplexTest.kt

        }
        body.awaitSuccess()
      }
    
      @Test
      fun clientReadsHeadersDataTrailers() {
        enableProtocol(Protocol.HTTP_2)
        val body =
          MockStreamHandler()
            .sendResponse("ok")
            .exhaustResponse()
        server.enqueue(
          MockResponse.Builder()
            .clearHeaders()
            .addHeader("h1", "v1")
            .addHeader("h2", "v2")
            .trailers(headersOf("trailers", "boom"))
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 23.9K bytes
    - Viewed (0)
Back to top