- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 54 for main (0.02 sec)
-
okcurl/src/main/kotlin/okhttp3/curl/Main.kt
import okhttp3.curl.internal.commonRun import okhttp3.curl.logging.LoggingUtil import okhttp3.internal.platform.Platform import okhttp3.logging.HttpLoggingInterceptor import okhttp3.logging.LoggingEventListener class Main : CliktCommand(name = NAME, help = "A curl for the next-generation web.") { val method: String? by option("-X", "--request", help = "Specify request command to use")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.7K bytes - Viewed (0) -
native-image-tests/src/main/kotlin/okhttp3/RunTests.kt
import org.junit.platform.launcher.core.LauncherFactory import org.junit.platform.launcher.listeners.SummaryGeneratingListener /** * Graal main method to run tests with minimal reflection and automatic settings. * Uses the test list in native-image-tests/src/main/resources/testlist.txt. */ fun main(vararg args: String) { System.setProperty("junit.jupiter.extensions.autodetection.enabled", "true")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.3K bytes - Viewed (0) -
samples/guide/src/test/kotlin/okhttp3/AllMainsTest.kt
private fun mainFiles(): List<File> { val directories = listOf( "$prefix/samples/guide/src/main/java/okhttp3/guide", "$prefix/samples/guide/src/main/java/okhttp3/recipes", "$prefix/samples/guide/src/main/java/okhttp3/recipes/kt", ).map { File(it) } return directories.flatMap { it.listFiles().orEmpty().filter { f -> f.isFile }.toList() } }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.7K bytes - Viewed (0) -
okcurl/src/main/kotlin/okhttp3/curl/MainCommandLine.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package okhttp3.curl import kotlin.system.exitProcess fun main(args: Array<String>) { Main().main(args) exitProcess(0)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Fri Apr 05 03:30:42 UTC 2024 - 728 bytes - Viewed (0) -
okhttp/build.gradle.kts
id("com.vanniktech.maven.publish.base") id("binary-compatibility-validator") } // Build & use okhttp3/internal/-InternalVersion.kt val copyKotlinTemplates = tasks.register<Copy>("copyKotlinTemplates") { from("src/main/kotlinTemplates") into("$buildDir/generated/sources/kotlinTemplates") expand("projectVersion" to project.version) filteringCharset = Charsets.UTF_8.toString() }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Jan 04 05:32:07 UTC 2024 - 5.6K bytes - Viewed (0) -
okcurl/src/test/kotlin/okhttp3/curl/OkcurlTest.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package okhttp3.curl import kotlin.test.Test class OkcurlTest { @Test fun simple() { Main().main(listOf("--help")) }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Dec 20 23:27:07 UTC 2023 - 732 bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/AccessHeaders.kt
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.4K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/Authenticate.kt
client.newCall(request).execute().use { response -> if (!response.isSuccessful) throw IOException("Unexpected code $response") println(response.body.string()) } } } fun main() { Authenticate().run()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/publicsuffix/PublicSuffixListGenerator.kt
* transforms the file into an efficient format used by OkHttp. * * * The intent is to use this class to update the list periodically by manually running the main * method. This should be run from the top-level okhttp directory. * * * The resulting file is used by [PublicSuffixDatabase]. */ class PublicSuffixListGenerator( projectRoot: Path = ".".toPath(),
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Apr 18 01:24:38 UTC 2024 - 6K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http/HttpStatusCodes.kt
package okhttp3.internal.http // HTTP Status Codes not offered by HttpUrlConnection. // // https://datatracker.ietf.org/doc/html/rfc7231#page-47 // // From https://github.com/apache/httpcomponents-core/blob/master/httpcore5/src/main/java/org/apache/hc/core5/http/HttpStatus.java /** `100 Continue` (HTTP/1.1 - RFC 7231) */ const val HTTP_CONTINUE = 100 /** `102 Processing` (WebDAV - RFC 2518) */ const val HTTP_PROCESSING = 102
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 15 13:24:48 UTC 2024 - 1.9K bytes - Viewed (0)