Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 126 of 126 for HelloWorld (0.22 sec)

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

          return socket;
        }
      }
    
      public void run() throws Exception {
        Request request = new Request.Builder()
            .url("https://publicobject.com/helloworld.txt")
            .build();
    
        try (Response response = client.newCall(request).execute()) {
          if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Mar 14 21:57:42 UTC 2019
    - 6.5K bytes
    - Viewed (0)
  2. samples/guide/src/main/java/okhttp3/recipes/CustomTrust.java

                .build();
      }
    
      public void run() throws Exception {
        Request request = new Request.Builder()
            .url("https://publicobject.com/helloworld.txt")
            .build();
    
        try (Response response = client.newCall(request).execute()) {
          if (!response.isSuccessful()) {
            Headers responseHeaders = response.headers();
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Aug 12 07:26:27 UTC 2021
    - 9.3K bytes
    - Viewed (0)
  3. pkg/test/echo/server/forwarder/tcp.go

    			return "", fmt.Errorf("did not receive magic string. Want %q, got %q", common.ServerFirstMagicString, string(readBytes))
    		}
    	}
    
    	// Make sure the client writes something to the buffer
    	message := "HelloWorld"
    	if cfg.Request.Message != "" {
    		message = cfg.Request.Message
    	}
    
    	if _, err := conn.Write([]byte(message + "\n")); err != nil {
    		fwLog.Warnf("TCP write failed: %v", err)
    		return msgBuilder.String(), err
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jul 20 19:13:32 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  4. pkg/test/echo/cmd/client/main.go

    		"A list of http headers (use Host for authority) - 'name: value', following curl syntax")
    	rootCmd.PersistentFlags().StringVar(&caFile, "ca", "", "CA root cert file")
    	rootCmd.PersistentFlags().StringVar(&msg, "msg", "HelloWorld",
    		"message to send (for websockets)")
    	rootCmd.PersistentFlags().StringVar(&expect, "expect", "",
    		"message to expect (for tcp)")
    	rootCmd.PersistentFlags().StringVar(&method, "method", "", "method to use (for HTTP)")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  5. docs/features/events.md

        printEvent("dnsEnd");
      }
    
      ...
    }
    ```
    
    We make a couple calls:
    
    ```java
    Request request = new Request.Builder()
        .url("https://publicobject.com/helloworld.txt")
        .build();
    
    System.out.println("REQUEST 1 (new connection)");
    try (Response response = client.newCall(request).execute()) {
      // Consume and discard the response body.
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 7.7K bytes
    - Viewed (0)
  6. istioctl/pkg/checkinject/checkinject.go

      istioctl x check-inject deployment/details-v1 -n test
    
      # Check the injection status of label pairs in a specific namespace before actual injection 
      istioctl x check-inject -n test -l app=helloworld,version=v1
    `,
    		Args: func(cmd *cobra.Command, args []string) error {
    			if len(args) == 0 && labelPairs == "" || len(args) > 1 {
    				cmd.Println(cmd.UsageString())
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 9.3K bytes
    - Viewed (0)
Back to top