Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for HelloWorld (2.96 sec)

  1. okhttp/src/commonJvmAndroid/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: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Oct 03 17:41:45 UTC 2025
    - 26.8K bytes
    - Viewed (0)
  2. 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: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 47.8K bytes
    - Viewed (0)
  3. src/bytes/buffer_test.go

    	expected string
    	err      error
    }{
    	{"", 0, 0, "", nil},
    	{"aaa", 0, 3, "aaa", nil},
    	{"foobar", 0, 2, "fo", nil},
    	{"a", 0, 2, "a", io.EOF},
    	{"helloworld", 4, 3, "owo", nil},
    	{"helloworld", 5, 5, "world", nil},
    	{"helloworld", 5, 6, "world", io.EOF},
    	{"helloworld", 10, 1, "", io.EOF},
    }
    
    func TestPeek(t *testing.T) {
    	for _, test := range peekTests {
    		buf := NewBufferString(test.buffer)
    		buf.Next(test.skip)
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Fri Nov 14 19:01:17 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  4. 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: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Dec 24 00:16:30 UTC 2022
    - 10.5K bytes
    - Viewed (0)
Back to top