Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for 123 (0.14 sec)

  1. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/MappedRange.kt

      data class Inline1(
        override val rangeStart: Int,
        private val mappedTo: ByteString,
      ) : MappedRange {
        val b1: Int
          get() {
            val b3bit8 = mappedTo[0] and 0x80 != 0
            return if (b3bit8) 123 else 122
          }
    
        val b2: Int
          get() = mappedTo[0] and 0x7f
      }
    
      data class Inline2(
        override val rangeStart: Int,
        private val mappedTo: ByteString,
      ) : MappedRange {
        val b1: Int
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

          getResponse(
            Request(
              url = server.url("/"),
              body = "123".toRequestBody(null),
            ),
          ),
        )
        val request1 = server.takeRequest()
        assertThat(request1.sequenceNumber).isEqualTo(0)
        val request2 = server.takeRequest()
        assertThat(request2.body.readUtf8()).isEqualTo("123")
        assertThat(request2.sequenceNumber).isEqualTo(0)
      }
    
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt

     * 80..95 : Offset by a fixed positive offset. The bottom 4 bits of b1 are the top 4 bits of the offset.
     *    119 : Ignored.
     *    120 : Valid.
     *    121 : Disallowed
     *    122 : Mapped inline to the sequence: [b2].
     *    123 : Mapped inline to the sequence: [b2a].
     *    124 : Mapped inline to the sequence: [b2, b3].
     *    125 : Mapped inline to the sequence: [b2a, b3].
     *    126 : Mapped inline to the sequence: [b2, b3a].
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Apr 02 11:39:58 GMT 2024
    - 9K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/idn/StringprepTest.kt

        // LCat embedded
        assertThat(stringPrep("\u0627abc\u0628")).isNull()
    
        // RandALCat not last.
        assertThat(stringPrep("\u0627123")).isNull()
    
        // RandALCat not first.
        assertThat(stringPrep("123\u0628")).isNull()
      }
    Plain Text
    - Registered: Fri Mar 29 11:42:11 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/CacheTest.kt

        assertThat(response.cacheResponse!!.request.url).isEqualTo(request.url)
      }
    
      @Test
      fun postWithOverrideResponse() {
        val url = server.url("/abc?token=123")
        val cacheUrlOverride = url.newBuilder().removeAllQueryParameters("token").build()
    
        val request =
          Request.Builder()
            .url(url)
            .method("POST", "XYZ".toRequestBody())
    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)
  6. okhttp/src/test/java/okhttp3/MultipartBodyTest.kt

            sink.writeUtf8(body)
          }
        }
    
        val expected =
          """
          |--123
          |
          |Quick
          |--123
          |
          |Brown
          |--123
          |
          |Fox
          |--123--
          |
          """.trimMargin().replace("\n", "\r\n")
        val body =
          MultipartBody.Builder("123")
            .addPart("Quick".toRequestBody(null))
            .addPart(StreamingBody("Brown"))
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/WebSocket.kt

       *
       * @param code Status code as defined by
       *     [Section 7.4 of RFC 6455](http://tools.ietf.org/html/rfc6455#section-7.4).
       * @param reason Reason for shutting down, no longer than 123 bytes of UTF-8 encoded data (**not** characters) or null.
       * @throws IllegalArgumentException if [code] is invalid or [reason] is too long.
       */
      fun close(
        code: Int,
        reason: String?,
      ): Boolean
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt

      fun closeReasonMaximumLength() {
        webServer.enqueue(
          MockResponse.Builder()
            .webSocketUpgrade(serverListener)
            .build(),
        )
        val clientReason = repeat('C', 123)
        val serverReason = repeat('S', 123)
        val webSocket: WebSocket = newWebSocket()
        val server = serverListener.assertOpen()
        clientListener.assertOpen()
        webSocket.close(1000, clientReason)
    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)
  9. okhttp/src/test/java/okhttp3/FormBodyTest.kt

        assertThat(formEncode(95)).isEqualTo("_")
        assertThat(formEncode(96)).isEqualTo("%60")
        assertThat(formEncode(97)).isEqualTo("a")
        assertThat(formEncode(122)).isEqualTo("z")
        assertThat(formEncode(123)).isEqualTo("%7B")
        assertThat(formEncode(124)).isEqualTo("%7C")
        assertThat(formEncode(125)).isEqualTo("%7D")
        assertThat(formEncode(126)).isEqualTo("%7E")
        assertThat(formEncode(127)).isEqualTo("%7F")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/CallTest.kt

        server.enqueue(
          MockResponse(
            headers =
              headersOf(
                "B",
                "123",
                "B",
                "234",
              ),
          ),
        )
        executeSynchronously("/", "A", "345", "A", "456")
          .assertCode(200)
          .assertHeader("B", "123", "234")
        val recordedRequest = server.takeRequest()
    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)
Back to top