Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 674 for onOpen (0.43 sec)

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

        count: Long,
      ) {
        val latch = CountDownLatch(1)
        val startNanos = AtomicLong()
        newWebSocket(
          "/runCase?case=$number&agent=okhttp",
          object : WebSocketListener() {
            override fun onOpen(
              webSocket: WebSocket,
              response: Response,
            ) {
              println("Executing test case $number/$count")
              startNanos.set(System.nanoTime())
            }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  2. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceHttpTest.kt

              """
              |data: hey
              |
              |
              """.trimMargin(),
            ).setHeader("content-type", "text/event-stream")
            .build(),
        )
        listener.enqueueCancel() // Will cancel in onOpen().
        newEventSource()
        listener.assertOpen()
        listener.assertFailure("canceled")
      }
    
      @Test
      fun badContentType() {
        server.enqueue(
          MockResponse.Builder()
            .body(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt

          )
      }
    
      /** Receive frames until there are no more. Invoked only by the reader thread. */
      @Throws(IOException::class)
      fun loopReader(response: Response) {
        try {
          listener.onOpen(this@RealWebSocket, response)
          while (receivedCloseCode == -1) {
            // This method call results in one or more onRead* methods being called on this thread.
            reader!!.processNextFrame()
          }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  4. CHANGELOG.md

     *  Fix: Don't crash loading the public suffix database resource in obfuscated builds.
     *  Fix: Don't silently ignore calls to `EventSource.cancel()` made from
        `EventSourceListener.onOpen()`.
     *  Fix: Enforce the max intermediates constraint when using pinned certificates with Conscrypt.
        This impacts Conscrypt when the server's presented certificates form both a trusted-but-unpinned
    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)
  5. docs/changelogs/changelog_2x.md

        `OkUrlFactory` to create new instances of `HttpURLConnection`:
    
        ```java
        // OkHttp 1.x:
        HttpURLConnection connection = client.open(url);
    
        // OkHttp 2.x:
        HttpURLConnection connection = new OkUrlFactory(client).open(url);
        ```
    
     *  **Custom caches are no longer supported.** In OkHttp 1.x it was possible to
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 26.6K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

            override fun cancel() = TODO()
          }
      }
    
      @Test
      fun webSocketListener() {
        val webSocketListener =
          object : WebSocketListener() {
            override fun onOpen(
              webSocket: WebSocket,
              response: Response,
            ) = TODO()
    
            override fun onMessage(
              webSocket: WebSocket,
              text: String,
            ) = TODO()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 46.5K bytes
    - Viewed (4)
  7. docs/changelogs/changelog_3x.md

        ```
    
     *  Fix: Don't miss cancels when sending HTTP/2 request headers.
     *  Fix: Don't miss whole operation timeouts when calls redirect.
     *  Fix: Don't leak connections if web sockets have malformed responses or if `onOpen()` throws.
     *  Fix: Don't retry when request bodies fail due to `FileNotFoundException`.
     *  Fix: Don't crash when URLs have IPv4-mapped IPv6 addresses.
     *  Fix: Don't crash when building `HandshakeCertificates` on Android API 28.
    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)
  8. okhttp/api/okhttp.api

    	public fun onFailure (Lokhttp3/WebSocket;Ljava/lang/Throwable;Lokhttp3/Response;)V
    	public fun onMessage (Lokhttp3/WebSocket;Ljava/lang/String;)V
    	public fun onMessage (Lokhttp3/WebSocket;Lokio/ByteString;)V
    	public fun onOpen (Lokhttp3/WebSocket;Lokhttp3/Response;)V
    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)
  9. internal/ioutil/read_file.go

    	"io"
    	"io/fs"
    	"os"
    
    	"github.com/minio/minio/internal/disk"
    )
    
    var (
    	// OpenFileDirectIO allows overriding default function.
    	OpenFileDirectIO = disk.OpenFileDirectIO
    	// OsOpen allows overriding default function.
    	OsOpen = os.Open
    	// OsOpenFile allows overriding default function.
    	OsOpenFile = os.OpenFile
    )
    
    // ReadFileWithFileInfo reads the named file and returns the contents.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 09 18:17:51 GMT 2023
    - 2.3K bytes
    - Viewed (0)
  10. cmd/os-instrumented.go

    // os.Lstat()
    func Access(name string) (err error) {
    	defer updateOSMetrics(osMetricAccess, name)(err)
    	return access(name)
    }
    
    // Open captures time taken to call os.Open
    func Open(name string) (f *os.File, err error) {
    	defer updateOSMetrics(osMetricOpen, name)(err)
    	return os.Open(name)
    }
    
    // OpenFileDirectIO captures time taken to call disk.OpenFileDirectIO
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 15 01:09:38 GMT 2024
    - 6.3K bytes
    - Viewed (0)
Back to top