Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 426 for shend (0.19 sec)

  1. samples/guide/src/main/java/okhttp3/recipes/WebSocketEcho.java

        client.dispatcher().executorService().shutdown();
      }
    
      @Override public void onOpen(WebSocket webSocket, Response response) {
        webSocket.send("Hello...");
        webSocket.send("...World!");
        webSocket.send(ByteString.decodeHex("deadbeef"));
        webSocket.close(1000, "Goodbye, World!");
      }
    
      @Override public void onMessage(WebSocket webSocket, String text) {
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 04 11:40:21 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  2. docs_src/background_tasks/tutorial002_py310.py

        if q:
            message = f"found query: {q}\n"
            background_tasks.add_task(write_log, message)
        return q
    
    
    @app.post("/send-notification/{email}")
    async def send_notification(
        email: str, background_tasks: BackgroundTasks, q: str = Depends(get_query)
    ):
        message = f"message to {email}\n"
        background_tasks.add_task(write_log, message)
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 643 bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/ws/RealWebSocketTest.kt

        taskFaker.runTasks()
        client.listener.assertFailure(IOException::class.java, "source is closed")
        assertThat(client.webSocket!!.send("Hello!")).isFalse()
      }
    
      @Test
      fun socketClosedDuringMessageKillsWebSocket() {
        client2Server.source.close()
        assertThat(client.webSocket!!.send("Hello!")).isTrue()
        taskFaker.runTasks()
        client.listener.assertFailure(IOException::class.java, "source is closed")
    
    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)
  4. fastapi/security/api_key.py

        with the API key and integrates that into the OpenAPI documentation. It extracts
        the key value sent in the query parameter automatically and provides it as the
        dependency result. But it doesn't define how to send that API key to the client.
    
        ## Usage
    
        Create an instance object and use that object as the dependency in `Depends()`.
    
        The dependency result will be a string containing the key value.
    
        ## Example
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 23 22:29:18 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt

        server.send(message3)
        clientListener.assertTextMessage(message3)
    
        // Empty client to server message.
        val message4 = ""
        client.send(message4)
        serverListener.assertTextMessage(message4)
    
        // Server to client message that shares context with message1.
        val message5 = message1 + message1
        server.send(message5)
        clientListener.assertTextMessage(message5)
    
    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)
  6. src/main/java/jcifs/smb/SmbPipeHandleImpl.java

                        req.setMaxDataCount(1024);
                    }
                    th.send(req, resp, RequestParam.NO_RETRY);
                    return resp.getResponseLength();
                }
                else if ( this.call ) {
                    th.send(new TransWaitNamedPipe(th.getConfig(), this.uncPath), new TransWaitNamedPipeResponse(th.getConfig()));
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Mon Apr 13 17:05:22 GMT 2020
    - 10.3K bytes
    - Viewed (0)
  7. fastapi/background.py

            with open("log.txt", mode="w") as email_file:
                content = f"notification for {email}: {message}"
                email_file.write(content)
    
    
        @app.post("/send-notification/{email}")
        async def send_notification(email: str, background_tasks: BackgroundTasks):
            background_tasks.add_task(write_notification, email, message="some notification")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  8. docs/extensions/s3zip/examples/aws-js/main.js

    });
    
    // List all contents stored in the zip archive
    s3.listObjectsV2({Bucket : 'your-bucket', Prefix: 'path/to/file.zip/'}).
        on('build', function(req) { req.httpRequest.headers['X-Minio-Extract'] = 'true'; }).
        send(function(err, data) {
            if (err) {
                console.log("Error", err);
            } else {
                console.log("Success", data);
            }
        });
    
    
    JavaScript
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jun 10 15:17:03 GMT 2021
    - 1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/netbios/NameServiceClientImpl.java

            }
    
            do {
                try {
                    send(request, response, config.getNetbiosRetryTimeout());
                }
                catch ( InterruptedIOException ioe ) {
                    // second query thread to finish gets interrupted so this is expected
                    if ( log.isTraceEnabled() ) {
                        log.trace("Failed to send nameservice request for " + name.name, ioe);
                    }
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Aug 14 14:26:22 GMT 2022
    - 38.2K bytes
    - Viewed (0)
  10. src/main/resources/fess_env_thumbnail.properties

    # ----------------------------------------------------------
    #                                                      Mail
    #                                                     ------
    # Does it send mock mail? (true: no send actually, logging only)
    mail.send.mock = false
    
    # SMTP server settings for main: host:port
    mail.smtp.server.main.host.and.port = localhost:25
    
    # The prefix of subject to show test environment or not
    Properties
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Mon Feb 12 13:38:57 GMT 2018
    - 2.2K bytes
    - Viewed (0)
Back to top