Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 462 for okcurl (0.06 seconds)

  1. okcurl/okcurl

    #!/bin/sh -e
    
    ../gradlew -q --console plain nativeBuild
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Jul 19 08:48:55 GMT 2025
    - 83 bytes
    - Click Count (0)
  2. okcurl/README.md

    OkCurl
    ======
    
    _A curl for the next-generation web._
    
    OkCurl is an OkHttp-backed curl clone which allows you to test OkHttp's HTTP engine (including
    HTTP/2) against web servers.
    
    To run locally, make sure you have GRAALVM_HOME set and run
    
    ```bash
    ./okcurl
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Jul 19 08:48:55 GMT 2025
    - 261 bytes
    - Click Count (0)
  3. settings.gradle.kts

    val loomBuild: String by settings
    
    if (androidBuild.toBoolean()) {
      include(":regression-test")
    }
    
    if (graalBuild.toBoolean()) {
      include(":native-image-tests")
    }
    
    include(":okcurl")
    include(":okhttp")
    include(":okhttp-bom")
    include(":okhttp-brotli")
    include(":okhttp-coroutines")
    include(":okhttp-dnsoverhttps")
    include(":okhttp-hpacktests")
    include(":okhttp-idna-mapping-table")
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Oct 11 09:17:37 GMT 2025
    - 2K bytes
    - Click Count (0)
  4. okcurl/build.gradle.kts

    apply(plugin = "org.graalvm.buildtools.native")
    
    configure<GraalVMExtension> {
      binaries {
        named("main") {
          imageName = "okcurl"
          mainClass = "okhttp3.curl.MainCommandLineKt"
        }
      }
    }
    
    mavenPublishing {
      configure(KotlinJvm(javadocJar = JavadocJar.Empty()))
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Jul 22 20:31:49 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  5. okcurl/src/main/kotlin/okhttp3/curl/Main.kt

        okHttpClient.dispatcher.executorService.shutdownNow()
      }
    
      companion object {
        internal const val NAME = "okcurl"
        internal const val DEFAULT_TIMEOUT = -1
    
        private fun versionString(): String? {
          val prop = Properties()
          Main::class.java.getResourceAsStream("/okcurl-version.properties")?.use {
            prop.load(it)
          }
          return prop.getProperty("version", "dev")
        }
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 6K bytes
    - Click Count (0)
  6. README.md

    GraalVM Native Image
    --------------------
    
    Building your native images with [GraalVM] should work automatically.
    
    See the okcurl module for an example build.
    
    ```shell
    $ ./gradlew okcurl:nativeImage
    $ ./okcurl/build/graal/okcurl https://httpbin.org/get
    ```
    
    Java Modules
    ------------
    
    OkHttp (5.2+) implements Java 9 Modules.
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Thu Oct 30 21:39:59 GMT 2025
    - 9.5K bytes
    - Click Count (0)
  7. okcurl/src/test/kotlin/okhttp3/curl/MainTest.kt

        assertThat(request.body).isNull()
      }
    
      @Test
      fun defaultUserAgent() {
        val request = fromArgs("http://example.com").createRequest()
        assertThat(request.header("User-Agent")!!).startsWith("okcurl/")
      }
    
      @Test
      fun headerSplitWithDate() {
        val request =
          fromArgs(
            "-H",
            "If-Modified-Since: Mon, 18 Aug 2014 15:16:06 GMT",
            "http://example.com",
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  8. build.gradle.kts

        // OkHttp requires Java 8+.
        jvmSignature(rootProject.libs.codehaus.signature.java18) { artifact { type = "signature" } }
      }
    
      val javaVersionSetting =
        if (testJavaVersion > 8 && (project.name == "okcurl" || project.name == "native-image-tests")) {
          // Depends on native-image-tools which is 17+, but avoids on Java 8 tests
          "17"
        } else {
          "1.8"
        }
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Nov 01 12:18:11 GMT 2025
    - 11.5K bytes
    - Click Count (1)
  9. CHANGELOG.md

    GraalVM is an exciting new platform and we're eager to adopt it. The startup time improvements over
    the JVM are particularly impressive. Try it with okcurl:
    
    ```
    $ ./gradlew okcurl:nativeImage
    $ ./okcurl/build/graal/okcurl https://cash.app/robots.txt
    ```
    
    This is our first release that supports GraalVM. Our code on this platform is less mature than JVM
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Dec 05 16:02:59 GMT 2025
    - 36.2K bytes
    - Click Count (2)
  10. .github/workflows/build.yml

              cache: 'gradle'
              native-image-job-reports: true
    
          - name: Setup Gradle
            uses: gradle/actions/setup-gradle@v5
    
          - name: Build okcurl
            run: ./gradlew okcurl:nativeBuild
    
          - name: Setup Gradle
            uses: gradle/actions/setup-gradle@v5
    
          - name: Run native-image tests
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Dec 12 04:49:37 GMT 2025
    - 18.6K bytes
    - Click Count (0)
Back to Top