Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 63 for Main (0.15 sec)

  1. samples/static-server/build.gradle.kts

    plugins {
      kotlin("jvm")
      id("com.github.johnrengelman.shadow")
    }
    
    tasks.compileJava {
      options.isWarnings = false
    }
    
    tasks.jar {
      manifest {
        attributes("Main-Class" to "okhttp3.sample.SampleServer")
      }
    }
    
    dependencies {
      implementation(projects.mockwebserver)
    }
    
    tasks.shadowJar {
      mergeServiceFiles()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Feb 08 20:01:28 GMT 2022
    - 316 bytes
    - Viewed (0)
  2. samples/guide/src/main/java/okhttp3/recipes/kt/PostForm.kt

          )
    
        client.newCall(request).execute().use { response ->
          if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
          println(response.body.string())
        }
      }
    }
    
    fun main() {
      PostForm().run()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  3. native-image-tests/build.gradle.kts

      implementation(libs.kotlin.test.junit)
    
      implementation(libs.nativeImageSvm)
    
      compileOnly(libs.findbugs.jsr305)
    }
    
    animalsniffer {
      isIgnoreFailures = true
    }
    
    sourceSets {
      main {
        java.srcDirs(
          "../okhttp-brotli/src/test/java",
          "../okhttp-dnsoverhttps/src/test/java",
          "../okhttp-logging-interceptor/src/test/java",
          "../okhttp-sse/src/test/java",
        )
      }
    }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 06 05:31:00 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  4. samples/guide/src/main/java/okhttp3/recipes/kt/PostFile.kt

          println(response.body.string())
        }
      }
    
      companion object {
        val MEDIA_TYPE_MARKDOWN = "text/x-markdown; charset=utf-8".toMediaType()
      }
    }
    
    fun main() {
      PostFile().run()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  5. samples/guide/src/main/java/okhttp3/recipes/kt/AccessHeaders.kt

          println("Server: ${response.header("Server")}")
          println("Date: ${response.header("Date")}")
          println("Vary: ${response.headers("Vary")}")
        }
      }
    }
    
    fun main() {
      AccessHeaders().run()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  6. samples/guide/src/main/java/okhttp3/recipes/kt/PostString.kt

          println(response.body.string())
        }
      }
    
      companion object {
        val MEDIA_TYPE_MARKDOWN = "text/x-markdown; charset=utf-8".toMediaType()
      }
    }
    
    fun main() {
      PostString().run()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  7. samples/guide/src/main/java/okhttp3/recipes/kt/PerCallSettings.kt

          client2.newCall(request).execute().use { response ->
            println("Response 2 succeeded: $response")
          }
        } catch (e: IOException) {
          println("Response 2 failed: $e")
        }
      }
    }
    
    fun main() {
      PerCallSettings().run()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  8. samples/guide/src/main/java/okhttp3/recipes/Authenticate.java

          if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
          System.out.println(response.body().string());
        }
      }
    
      public static void main(String... args) throws Exception {
        new Authenticate().run();
      }
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Aug 12 07:26:27 GMT 2021
    - 1.9K bytes
    - Viewed (0)
  9. samples/guide/src/main/java/okhttp3/recipes/kt/CancelCall.kt

          }
        } catch (e: IOException) {
          System.out.printf(
            "%.2f Call failed as expected: %s%n",
            (System.nanoTime() - startNanos) / 1e9f,
            e,
          )
        }
      }
    }
    
    fun main() {
      CancelCall().run()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  10. samples/guide/src/main/java/okhttp3/recipes/kt/PostMultipart.kt

         */
        private const val IMGUR_CLIENT_ID = "9199fdef135c122"
        private val MEDIA_TYPE_PNG = "image/png".toMediaType()
      }
    }
    
    fun main() {
      PostMultipart().run()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.1K bytes
    - Viewed (0)
Back to top