Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for encodeString (0.39 sec)

  1. platforms/documentation/docs/src/docs/userguide/authoring-builds/basics/plugins.adoc

            classpath 'com.android.tools.build:gradle:4.1.0' // used in subproject
        }
    }
    
    tasks.register('encode') {
        doLast {
            def byte[] encodedString = new Base64().encode('hello world\n'.getBytes())
            println new String(encodedString)
        }
    }
    ----
    
    And you can apply the globally declared dependencies in the subproject that needs it:
    
    [source,subproject/build.gradle]
    ----
    plugins {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 04:11:37 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  2. src/net/http/transport_test.go

    	for _, ce := range []string{"gzip", "GZIP"} {
    		ce := ce
    		t.Run(ce, func(t *testing.T) {
    			const encodedString = "Hello Gopher"
    			ts := newClientServerTest(t, mode, HandlerFunc(func(w ResponseWriter, r *Request) {
    				w.Header().Set("Content-Encoding", ce)
    				gz := gzip.NewWriter(w)
    				gz.Write([]byte(encodedString))
    				gz.Close()
    			})).ts
    
    			res, err := ts.Client().Get(ts.URL)
    			if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
Back to top