Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for toUByte (0.07 sec)

  1. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        val source = response.body.source()
        source.timeout().timeout(1000, TimeUnit.MILLISECONDS)
        assertThat(source.readByte()).isEqualTo('A'.code.toByte())
        assertThat(source.readByte()).isEqualTo('B'.code.toByte())
        assertThat(source.readByte()).isEqualTo('C'.code.toByte())
        assertFailsWith<SocketTimeoutException> {
          source.readByte() // If Content-Length was accurate, this would return -1 immediately.
        }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CallTest.kt

        val request = Request.Builder().url(server.url("/b")).build()
        val response = client.newCall(request).execute()
        val bodySource = response.body.source()
        assertThat(bodySource.readByte()).isEqualTo('d'.code.toByte())
    
        // The second byte of this request will be delayed by 750ms so we should time out after 250ms.
        val startNanos = System.nanoTime()
        bodySource.use {
          assertFailsWith<IOException> {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
  3. cmd/server_test.go

    	c.Assert(err, nil)
    	// assert the http response status code.
    	c.Assert(response.StatusCode, http.StatusOK)
    
    	invalidBucket := "Invalid\\Bucket"
    	tooByte := bytes.Repeat([]byte("a"), 1025)
    	tooBigPrefix := string(tooByte)
    	validEvents := []string{"s3:ObjectCreated:*", "s3:ObjectRemoved:*"}
    	invalidEvents := []string{"invalidEvent"}
    
    	req, err = newTestSignedRequest(http.MethodGet,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 15 16:28:02 UTC 2024
    - 116.3K bytes
    - Viewed (0)
Back to top