Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 121 for HelloWorld (0.24 sec)

  1. docs/recipes.md

    === ":material-language-kotlin: Kotlin"
        ```kotlin
          private val client = OkHttpClient()
    
          fun run() {
            val request = Request.Builder()
                .url("https://publicobject.com/helloworld.txt")
                .build()
    
            client.newCall(request).execute().use { response ->
              if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Fri Feb 18 08:52:22 UTC 2022
    - 40.2K bytes
    - Viewed (0)
  2. pkg/test/echo/server/forwarder/tls.go

    		return msgBuilder.String(), err
    	}
    
    	if err := conn.HandshakeContext(ctx); err != nil {
    		return "", err
    	}
    	// Make sure the client writes something to the buffer
    	message := "HelloWorld"
    	if cfg.Request.Message != "" {
    		message = cfg.Request.Message
    	}
    
    	start := time.Now()
    	if _, err := conn.Write([]byte(message + "\n")); err != nil {
    		fwLog.Warnf("TCP write failed: %v", err)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 11 16:27:16 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  3. pkg/test/echo/server/forwarder/udp.go

    		return msgBuilder.String(), err
    	}
    	if err := conn.SetReadDeadline(deadline); err != nil {
    		return msgBuilder.String(), err
    	}
    
    	// 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("UDP write failed: %v", err)
    		return msgBuilder.String(), err
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Oct 13 17:19:22 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  4. pilot/pkg/serviceregistry/kube/controller/util_test.go

    			Name:      "service",
    			Namespace: "ns",
    		},
    		Spec: v1.ServiceSpec{
    			Ports: []v1.ServicePort{{
    				Name: "http",
    				Port: 80,
    			}},
    			Selector:  map[string]string{"app": "helloworld"},
    			ClusterIP: "9.9.9.9",
    		},
    	}
    
    	if nodeSelector != "" {
    		svc.Annotations = map[string]string{
    			"traffic.istio.io/nodeSelector": nodeSelector,
    		}
    	}
    	return svc
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 21 20:45:12 UTC 2023
    - 5K bytes
    - Viewed (0)
  5. pkg/kube/inject/testdata/inject/deploymentconfig-with-canonical-service-label.yaml.injected

              name: istio-ca-root-cert
            name: istiod-ca-cert
      test: false
      triggers:
      - type: ConfigChange
      - imageChangeParams:
          automatic: true
          containerNames:
          - helloworld
          from:
            kind: ImageStreamTag
            name: hello-go-gke:1.0
        type: ImageChange
    status:
      availableReplicas: 0
      latestVersion: 0
      observedGeneration: 0
      replicas: 0
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Feb 27 16:55:16 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  6. pkg/kube/inject/testdata/inject/deploymentconfig.yaml.injected

              name: istio-ca-root-cert
            name: istiod-ca-cert
      test: false
      triggers:
      - type: ConfigChange
      - imageChangeParams:
          automatic: true
          containerNames:
          - helloworld
          from:
            kind: ImageStreamTag
            name: hello-go-gke:1.0
        type: ImageChange
    status:
      availableReplicas: 0
      latestVersion: 0
      observedGeneration: 0
      replicas: 0
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Feb 27 16:55:16 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  7. docs/features/https.md

                .sslSocketFactory(sslSocketFactory, trustManager)
                .build()
          }
    
          fun run() {
            val request = Request.Builder()
                .url("https://publicobject.com/helloworld.txt")
                .build()
    
            client.newCall(request).execute().use { response ->
              if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Dec 24 00:16:30 UTC 2022
    - 10.5K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/Cache.kt

     * directive:
     *
     * ```java
     * Request request = new Request.Builder()
     *     .cacheControl(new CacheControl.Builder().noCache().build())
     *     .url("http://publicobject.com/helloworld.txt")
     *     .build();
     * ```
     *
     * If it is only necessary to force a cached response to be validated by the server, use the more
     * efficient `max-age=0` directive instead:
     *
     * ```java
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  9. internal/config/config_test.go

    		})
    	}
    }
    
    func TestValidRegion(t *testing.T) {
    	tests := []struct {
    		name    string
    		success bool
    	}{
    		{name: "us-east-1", success: true},
    		{name: "us_east", success: true},
    		{name: "helloWorld", success: true},
    		{name: "-fdslka", success: false},
    		{name: "^00[", success: false},
    		{name: "my region", success: false},
    		{name: "%%$#!", success: false},
    	}
    
    	for _, test := range tests {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Aug 18 22:55:17 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  10. samples/guide/src/main/java/okhttp3/recipes/kt/CustomTrust.kt

            .sslSocketFactory(certificates.sslSocketFactory(), certificates.trustManager)
            .build()
      }
    
      fun run() {
        showUrl("https://squareup.com/robots.txt")
        showUrl("https://publicobject.com/helloworld.txt")
      }
    
      private fun showUrl(url: String) {
        val request = Builder().url(url).build()
        client.newCall(request)
          .execute()
          .use { response ->
            if (!response.isSuccessful) {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.8K bytes
    - Viewed (0)
Back to top