Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 55 for Value (0.13 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

       *
       * For non-streaming requests with a body, headers must be prepared **after** the output stream
       * has been written to and closed. This ensures that the `Content-Length` header field receives
       * the proper value.
       */
      override fun writeRequestHeaders(request: Request) {
        val requestLine = RequestLine.get(request, carrier.route.proxy.type())
        writeRequest(request.headers, requestLine)
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 16.2K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt

              id = 7 // Renumbered in draft 10.
              if (value < 0) {
                throw IOException("PROTOCOL_ERROR SETTINGS_INITIAL_WINDOW_SIZE > 2^31 - 1")
              }
            }
    
            // SETTINGS_MAX_FRAME_SIZE
            5 -> {
              if (value < INITIAL_MAX_FRAME_SIZE || value > 16777215) {
                throw IOException("PROTOCOL_ERROR SETTINGS_MAX_FRAME_SIZE: $value")
              }
            }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheInterceptor.kt

        ): Headers {
          val result = Headers.Builder()
    
          for (index in 0 until cachedHeaders.size) {
            val fieldName = cachedHeaders.name(index)
            val value = cachedHeaders.value(index)
            if ("Warning".equals(fieldName, ignoreCase = true) && value.startsWith("1")) {
              // Drop 100-level freshness warnings.
              continue
            }
            if (isContentSpecificHeader(fieldName) ||
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Mar 22 07:09:21 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt

      }
    
      @Test @Disabled
      fun cookie() {
        val cookie: Cookie = Cookie.Builder().build()
        val name: String = cookie.name()
        val value: String = cookie.value()
        val persistent: Boolean = cookie.persistent()
        val expiresAt: Long = cookie.expiresAt()
        val hostOnly: Boolean = cookie.hostOnly()
        val domain: String = cookie.domain()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/RequestTest.kt

          builder.header("", "Value")
        }
        assertFailsWith<IllegalArgumentException> {
          builder.addHeader("", "Value")
        }
      }
    
      @Test
      fun headerAllowsTabOnlyInValues() {
        val builder = Request.Builder()
        builder.header("key", "sample\tvalue")
        assertFailsWith<IllegalArgumentException> {
          builder.header("sample\tkey", "value")
        }
      }
    
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt

            .build(),
        )
        val webSocket = newWebSocket()
        clientListener.assertFailure(
          101,
          null,
          ProtocolException::class.java,
          "Expected 'Connection' header value 'Upgrade' but was 'null'",
        )
        webSocket.cancel()
      }
    
      @Test
      @Throws(IOException::class)
      fun wrongConnectionHeader() {
        webServer.enqueue(
          MockResponse.Builder()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 35.2K bytes
    - Viewed (1)
  7. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskRunner.kt

        lock.assertHeld()
    
        while (true) {
          if (readyQueues.isEmpty()) {
            return null // Nothing to do.
          }
    
          val now = backend.nanoTime()
          var minDelayNanos = Long.MAX_VALUE
          var readyTask: Task? = null
          var multipleReadyTasks = false
    
          // Decide what to run. This loop's goal wants to:
          //  * Find out what this thread should do (either run a task or sleep)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/Cookie.kt

            this.name = name
          }
    
        fun value(value: String) =
          apply {
            require(value.trim() == value) { "value is not trimmed" }
            this.value = value
          }
    
        fun expiresAt(expiresAt: Long) =
          apply {
            var expiresAt = expiresAt
            if (expiresAt <= 0L) expiresAt = Long.MIN_VALUE
            if (expiresAt > MAX_DATE) expiresAt = MAX_DATE
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:12:05 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/CookieTest.kt

        assertThat(parse(url, "a=\r\t \n")!!.value).isEqualTo("")
      }
    
      @Test fun trimLeadingAndTrailingWhitespaceFromValue() {
        assertThat(parse(url, "a= ")!!.value).isEqualTo("")
        assertThat(parse(url, "a= b")!!.value).isEqualTo("b")
        assertThat(parse(url, "a=b ")!!.value).isEqualTo("b")
        assertThat(parse(url, "a=\r\t \nb\n\t \n")!!.value).isEqualTo("b")
      }
    
      @Test fun invalidCharacters() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 24.3K bytes
    - Viewed (0)
  10. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

        val headers = response.headers
        val size = headers.size
        val headerList: MutableList<String> = ArrayList(size)
        for (i in 0 until size) {
          headerList.add(headers.name(i) + ": " + headers.value(i))
        }
        return headerList
      }
    
      @Test
      fun shutdownWithoutStart() {
        val server = MockWebServer()
        server.shutdown()
      }
    
      @Test
      fun closeViaClosable() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.9K bytes
    - Viewed (0)
Back to top