Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 23 for 15 (0.11 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketProtocol.kt

      /** Byte 0 reserved flag 3. Must be 0 unless negotiated otherwise. */
      internal const val B0_FLAG_RSV3 = 16
    
      /** Byte 0 mask for the frame opcode. */
      internal const val B0_MASK_OPCODE = 15
    
      /** Flag in the opcode which indicates a control frame. */
      internal const val OPCODE_FLAG_CONTROL = 8
    
      /**
       * Byte 1 flag for whether the payload data is masked.
       *
       * If this flag is set, the next four
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  2. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsRecordCodec.kt

        val result = mutableListOf<InetAddress>()
    
        val buf = Buffer()
        buf.write(byteString)
        buf.readShort() // query id
    
        val flags = buf.readShort().toInt() and 0xffff
        require(flags shr 15 != 0) { "not a response" }
    
        val responseCode = flags and 0xf
    
        if (responseCode == NXDOMAIN) {
          throw UnknownHostException("$hostname: NXDOMAIN")
        } else if (responseCode == SERVFAIL) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  3. CHANGELOG.md

        returned.
    
     *  Upgrade: [Okio 3.9.0][okio_3_9_0].
    
     *  Upgrade: [Kotlin 1.9.23][kotlin_1_9_23].
    
     *  Upgrade: [UnicodeĀ® IDNA 15.1.0][idna_15_1_0]
    
    
    ## Version 5.0.0-alpha.12
    
    _2023-12-17_
    
    We took too long to cut this release and there's a lot of changes in it. We've been busy.
    
    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)
  4. okhttp/src/test/java/okhttp3/CacheTest.kt

        assertThat(response2.header("Warning")).isNull()
      }
    
      @Test
      fun defaultExpirationDateConditionallyCached() {
        //      last modified: 115 seconds ago
        //             served:  15 seconds ago
        //   default lifetime: (115 - 15) / 10 = 10 seconds
        //            expires:  10 seconds from served date = 5 seconds ago
        val lastModifiedDate = formatDate(-115, TimeUnit.SECONDS)
        val conditionalRequest =
    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)
  5. okhttp/src/main/kotlin/okhttp3/Cookie.kt

                year = matcher.group(1).toInt()
              }
            }
    
            pos = dateCharacterOffset(s, end + 1, limit, false)
          }
    
          // Convert two-digit years into four-digit years. 99 becomes 1999, 15 becomes 2015.
          if (year in 70..99) year += 1900
          if (year in 0..69) year += 2000
    
          // If any partial is omitted or out of range, return -1. The date is impossible. Note that leap
    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)
  6. docs/changelogs/changelog_3x.md

         </dependency>
    
         com.squareup.okio:okio:1.13.0
         ```
    
     *  Fix: gracefully recover when Android 7.0's sockets throw an unexpected
        `NullPointerException`.
    
    ## Version 3.7.0
    
    _2017-04-15_
    
     *  **OkHttp no longer recovers from TLS handshake failures by attempting a TLSv1 connection.**
        The fallback was necessary for servers that implemented version negotiation incorrectly. Now
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Viewed (0)
  7. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

            addHeaderLenient(headers, header)
            val lowercaseHeader = header.lowercase(Locale.US)
            if (contentLength == -1L && lowercaseHeader.startsWith("content-length:")) {
              contentLength = header.substring(15).trim().toLong()
            }
            if (lowercaseHeader.startsWith("transfer-encoding:") &&
              lowercaseHeader.substring(18).trim() == "chunked"
            ) {
              chunked = true
            }
          }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/http2/FrameLogTest.kt

        assertThat(frameLog(false, 3, 0, TYPE_DATA, FLAG_END_STREAM))
          .isEqualTo(">> 0x00000003     0 DATA          END_STREAM")
        assertThat(frameLog(true, 0, 15, TYPE_SETTINGS, FLAG_NONE))
          .isEqualTo("<< 0x00000000    15 SETTINGS      ")
        assertThat(frameLog(false, 0, 0, TYPE_SETTINGS, FLAG_ACK))
          .isEqualTo(">> 0x00000000     0 SETTINGS      ACK")
        assertThat(frameLog(true, 0, 0, TYPE_SETTINGS, FLAG_ACK))
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  9. samples/guide/src/main/java/okhttp3/recipes/kt/PostString.kt

    class PostString {
      private val client = OkHttpClient()
    
      fun run() {
        val postBody =
          """
          |Releases
          |--------
          |
          | * _1.0_ May 6, 2013
          | * _1.1_ June 15, 2013
          | * _1.2_ August 11, 2013
          |
          """.trimMargin()
    
        val request =
          Request(
            url = "https://api.github.com/markdown/raw".toHttpUrl(),
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  10. samples/guide/src/main/java/okhttp3/recipes/PostString.java

      public void run() throws Exception {
        String postBody = ""
            + "Releases\n"
            + "--------\n"
            + "\n"
            + " * _1.0_ May 6, 2013\n"
            + " * _1.1_ June 15, 2013\n"
            + " * _1.2_ August 11, 2013\n";
    
        Request request = new Request.Builder()
            .url("https://api.github.com/markdown/raw")
            .post(RequestBody.create(postBody, MEDIA_TYPE_MARKDOWN))
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat May 25 18:02:55 GMT 2019
    - 1.7K bytes
    - Viewed (0)
Back to top