Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 449 for clone (0.19 sec)

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

        server.enqueue(MockResponse(body = "def"))
        val request = Request(server.url("/"))
        val call = client.newCall(request)
        val response1 = call.execute()
        val cloned = call.clone()
        val response2 = cloned.execute()
        assertThat("abc").isEqualTo(response1.body.string())
        assertThat("def").isEqualTo(response2.body.string())
      }
    
      @Test
      fun legalToExecuteTwiceCloning_Async() {
    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)
  2. api/go1.txt

    pkg io, type Closer interface { Close }
    pkg io, type Closer interface, Close() error
    pkg io, type LimitedReader struct
    pkg io, type LimitedReader struct, N int64
    pkg io, type LimitedReader struct, R Reader
    pkg io, type PipeReader struct
    pkg io, type PipeWriter struct
    pkg io, type ReadCloser interface { Close, Read }
    pkg io, type ReadCloser interface, Close() error
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (2)
  3. docs/bucket/notifications/README.md

          if c.NatsConn() != nil {
           c.NatsConn().Close()
          }
          _ = c.Close()
         }))
         if stanConnection != nil {
          subscribe()
         }
    
        }
       }
    
      }()
     }))
    
     // Subscribe to subject
     subscribe()
    
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 84K bytes
    - Viewed (2)
  4. src/main/webapp/js/admin/jquery-3.6.3.min.map

    Plain Text
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Fri Feb 17 12:13:41 GMT 2023
    - 135.2K bytes
    - Viewed (0)
  5. okhttp/api/okhttp.api

    	public final fun boundary ()Ljava/lang/String;
    	public fun close ()V
    	public final fun nextPart ()Lokhttp3/MultipartReader$Part;
    }
    
    public final class okhttp3/MultipartReader$Part : java/io/Closeable {
    	public fun <init> (Lokhttp3/Headers;Lokio/BufferedSource;)V
    	public final fun body ()Lokio/BufferedSource;
    	public fun close ()V
    	public final fun headers ()Lokhttp3/Headers;
    }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 70.2K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/ws/RealWebSocketTest.kt

        server.listener.assertExhausted()
        server.source.close()
        client.source.close()
        taskFaker.runTasks()
        server.webSocket!!.tearDown()
        client.webSocket!!.tearDown()
        taskFaker.close()
      }
    
      @Test
      fun close() {
        client.webSocket!!.close(1000, "Hello!")
        // This will trigger a close response.
        assertThat(server.processNextFrame()).isFalse()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 01:59:58 GMT 2024
    - 18.5K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/ResponseBody.kt

     * * `Response.body().close()`
     * * `Response.body().source().close()`
     * * `Response.body().charStream().close()`
     * * `Response.body().byteStream().close()`
     * * `Response.body().bytes()`
     * * `Response.body().string()`
     *
     * There is no benefit to invoking multiple `close()` methods for the same response body.
     *
     * For synchronous calls, the easiest way to make sure a response body is closed is with a `try`
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/ws/WebSocketReaderTest.kt

        }
      }
    
      @Test fun closeReservedSetThrows() {
        data.write("880203ec".decodeHex()) // Close with code 1004
        data.write("880203ed".decodeHex()) // Close with code 1005
        data.write("880203ee".decodeHex()) // Close with code 1006
        for (i in 1015..2999) {
          data.write(("8802" + format("%04X", i)).decodeHex()) // Close with code 'i'
        }
        var count = 0
        while (!data.exhausted()) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 14.4K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt

        // Confirm all sent messages were received, followed by a client-initiated close.
        val server = serverListener.assertOpen()
        for (i in 0 until messageCount) {
          serverListener.assertBinaryMessage(message)
        }
        serverListener.assertClosing(1001, "")
    
        // When the server acknowledges the close the connection shuts down gracefully.
        server.close(1000, null)
        clientListener.assertClosing(1000, "")
    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)
  10. okhttp/src/main/kotlin/okhttp3/MultipartReader.kt

     * part is particularly large or if the underlying source is particularly slow, the [nextPart] call
     * may be slow!
     *
     * Closing a part **does not** close this multipart reader; callers must explicitly close this with
     * [close].
     *
     * [rfc_2046]: http://www.ietf.org/rfc/rfc2046.txt
     */
    class MultipartReader
      @Throws(IOException::class)
      constructor(
        private val source: BufferedSource,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.1K bytes
    - Viewed (0)
Back to top