- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 34 for toCurl (0.1 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/RequestTest.kt
fun curlGet() { val request = Request .Builder() .url("https://example.com") .header("Authorization", "Bearer abc123") .build() val curl = request.toCurl() assertThat(curl) .isEqualTo( """ |curl 'https://example.com/' \ | -H 'Authorization: Bearer abc123' """.trimMargin(), ) } @Test
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Oct 24 11:36:14 UTC 2025 - 24.4K bytes - Viewed (0) -
okhttp/api/jvm/okhttp.api
public final fun tag (Ljava/lang/Class;)Ljava/lang/Object; public final fun tag (Lkotlin/reflect/KClass;)Ljava/lang/Object; public final fun toCurl ()Ljava/lang/String; public final fun toCurl (Z)Ljava/lang/String; public static synthetic fun toCurl$default (Lokhttp3/Request;ZILjava/lang/Object;)Ljava/lang/String; public fun toString ()Ljava/lang/String; public final fun url ()Lokhttp3/HttpUrl; }
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Nov 05 18:28:35 UTC 2025 - 70.2K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Request.kt
* ``` * * **Note:** This will consume the request body. This may have side effects if the [RequestBody] * is streaming or can be consumed only once. */ @JvmOverloads fun toCurl(includeBody: Boolean = true): String = buildString { append("curl ${url.toString().shellEscape()}") val contentType = body?.contentType()?.toString() // Add method if not the default.
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Thu Oct 30 13:46:58 UTC 2025 - 14.7K bytes - Viewed (1) -
okhttp/api/android/okhttp.api
public final fun tag (Ljava/lang/Class;)Ljava/lang/Object; public final fun tag (Lkotlin/reflect/KClass;)Ljava/lang/Object; public final fun toCurl ()Ljava/lang/String; public final fun toCurl (Z)Ljava/lang/String; public static synthetic fun toCurl$default (Lokhttp3/Request;ZILjava/lang/Object;)Ljava/lang/String; public fun toString ()Ljava/lang/String; public final fun url ()Lokhttp3/HttpUrl; }
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Nov 05 18:28:35 UTC 2025 - 70.3K bytes - Viewed (0) -
CHANGELOG.md
* New: Publish events when calls must wait to execute. `EventListener.dispatcherQueueStart()` is invoked when a call starts waiting, and `dispatcherQueueEnd()` is invoked when it's done. * New: `Request.toCurl()` returns a copy-pasteable [curl] command consistent with Chrome’s and Firefox’s ‘copy as cURL’ features. * New: Support [JPMS]. We replaced our `Automatic-Module-Name` metadata with proper
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Dec 05 16:02:59 UTC 2025 - 36.2K bytes - Viewed (2) -
guava-tests/test/com/google/common/base/EnumsTest.java
for (String entry : Splitter.on(PATH_SEPARATOR.value()).split(JAVA_CLASS_PATH.value())) { try { try { urls.add(new File(entry).toURI().toURL()); } catch (SecurityException e) { // File.toURI checks to see if the file is a directory urls.add(new URL("file", null, new File(entry).getAbsolutePath())); } } catch (MalformedURLException e) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 20:07:52 UTC 2025 - 8.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/ClassPathTest.java
new File("/usr/test/dep.jar").toURI(), ClassPath.getClassPathEntry(new File("/home/build/outer.jar"), "file:/usr/test/dep.jar") .toURI()); assertEquals( new File("/home/build/a.jar").toURI(), ClassPath.getClassPathEntry(new File("/home/build/outer.jar"), "a.jar").toURI()); assertEquals( new File("/home/build/x/y/z").toURI(),
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 21:00:51 UTC 2025 - 23K bytes - Viewed (0) -
mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt
server.enqueue(MockResponse()) try { server .url("/a") .toUrl() .openConnection() .getInputStream() fail<Any>() } catch (expected: IOException) { } server .url("/b") .toUrl() .openConnection() .getInputStream() // Should succeed. } /**
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Thu Jul 03 13:16:34 UTC 2025 - 22.3K bytes - Viewed (0) -
mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt
server.enqueue(MockResponse()) try { server .url("/a") .toUrl() .openConnection() .getInputStream() fail<Unit>() } catch (expected: IOException) { // Expected. } server .url("/b") .toUrl() .openConnection() .getInputStream() // Should succeed. } @Test
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sun Aug 03 22:38:00 UTC 2025 - 28K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/ResourcesTest.java
assertThrows(IllegalArgumentException.class, () -> Resources.getResource(tempFile.getName())); // Now set the context loader to one that should find the resource. URL baseUrl = tempFile.getParentFile().toURI().toURL(); URLClassLoader loader = new URLClassLoader(new URL[] {baseUrl}); ClassLoader oldContextLoader = Thread.currentThread().getContextClassLoader(); try {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 6.9K bytes - Viewed (0)