Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for movies (0.16 sec)

  1. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt

           * Content-Type: plain/text
           * Content-Length: 6
           * <-- END HTTP
           * ```
           */
          HEADERS,
    
          /**
           * Logs request and response lines and their respective headers and bodies (if present).
           *
           * Example:
           * ```
           * --> POST /greeting http/1.1
           * Host: example.com
           * Content-Type: plain/text
           * Content-Length: 3
           *
           * Hi?
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 11.2K bytes
    - Viewed (1)
  2. okhttp/src/test/java/okhttp3/CallTest.kt

        val secondResponse = callback.await(request.url).assertSuccessful()
        val bodies: MutableSet<String?> = LinkedHashSet()
        bodies.add(firstResponse.body)
        bodies.add(secondResponse.body)
        assertThat(bodies).contains("abc")
        assertThat(bodies).contains("def")
      }
    
      @Test
      fun get_Async() {
        server.enqueue(
          MockResponse(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt

        return nextConnectionSpec(connectionSpecs, sslSocket)
          ?: throw UnknownServiceException(
            "Unable to find acceptable protocols." +
              " isFallback=$isTlsFallback," +
              " modes=$connectionSpecs," +
              " supported protocols=${sslSocket.enabledProtocols!!.contentToString()}",
          )
      }
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/Cache.kt

        get() = cache.directory.toFile()
    
      @get:JvmName("directoryPath")
      val directoryPath: Path
        get() = cache.directory
    
      @JvmName("-deprecated_directory")
      @Deprecated(
        message = "moved to val",
        replaceWith = ReplaceWith(expression = "directory"),
        level = DeprecationLevel.ERROR,
      )
      fun directory(): File = cache.directory.toFile()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

        )
        val latch = CountDownLatch(2)
        val errors = ArrayList<IOException?>()
        val bodies: BlockingQueue<String?> = LinkedBlockingQueue()
        val callback: Callback =
          object : Callback {
            override fun onResponse(
              call: Call,
              response: Response,
            ) {
              bodies.add(response.body.string())
              latch.countDown()
            }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  6. CHANGELOG.md

        than 63 characters between dots), and empty labels.
     *  New: Don't include the `Content-Length` header in multipart bodies. Servers must delimit
        OkHttp's request bodies using the boundary only. (This change makes OkHttp more consistent with
        browsers and other HTTP clients.)
     *  New: Drop the `tunnelProxy` argument in `MockWebServer.useHttps()`. This change only impacts
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:31:39 GMT 2024
    - 21.4K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/-ResponseCommon.kt

          """
          |Unreadable ResponseBody! These Response objects have bodies that are stripped:
          | * Response.cacheResponse
          | * Response.networkResponse
          | * Response.priorResponse
          | * EventSourceListener
          | * WebSocketListener
          |(It is safe to call contentType() and contentLength() on these response bodies.)
          """.trimMargin(),
        )
      }
    
      override fun timeout() = Timeout.NONE
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheStrategy.kt

     */
    package okhttp3.internal.cache
    
    import java.net.HttpURLConnection.HTTP_BAD_METHOD
    import java.net.HttpURLConnection.HTTP_GONE
    import java.net.HttpURLConnection.HTTP_MOVED_PERM
    import java.net.HttpURLConnection.HTTP_MOVED_TEMP
    import java.net.HttpURLConnection.HTTP_MULT_CHOICE
    import java.net.HttpURLConnection.HTTP_NOT_AUTHORITATIVE
    import java.net.HttpURLConnection.HTTP_NOT_FOUND
    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)
  9. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

                }
    
                if (closed) {
                  throw IOException("stream closed")
                } else if (readBuffer.size > 0L) {
                  // Prepare to read bytes. Start by moving them to the caller's buffer.
                  readBytesDelivered = readBuffer.read(sink, minOf(byteCount, readBuffer.size))
                  readBytes.update(total = readBytesDelivered)
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 23.2K bytes
    - Viewed (1)
  10. okhttp/src/test/java/okhttp3/CacheTest.kt

            builder.addHeader("WWW-Authenticate: Basic realm=\"protected area\"")
          }
    
          HttpURLConnection.HTTP_NO_CONTENT, HttpURLConnection.HTTP_RESET -> {
            builder.body("") // We forbid bodies for 204 and 205.
          }
        }
        server.enqueue(builder.build())
        if (responseCode == HttpURLConnection.HTTP_CLIENT_TIMEOUT) {
    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)
Back to top