- Sort Score
- Num 10 results
- Language All
Results 331 - 340 of 761 for printTo (0.05 seconds)
-
okhttp-coroutines/README.md
OkHttp Coroutines ================= Support for Kotlin clients using coroutines. ```kotlin val call = client.newCall(request) call.executeAsync().use { response -> withContext(Dispatchers.IO) { println(response.body?.string()) } } ``` This is implemented using `suspendCancellableCoroutine` but uses the standard Dispatcher in OkHttp. This means that by default Kotlin's Dispatchers are not used.
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Thu Nov 09 15:47:27 GMT 2023 - 609 bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/WebPlatformToAsciiTest.kt
} else { if (failure != null) failures += failure } } if (failures.isNotEmpty()) { for (failure in failures) { println(failure) } throw failures.first() } } private fun testToAscii( input: String, output: String?, comment: String?, ) { val url = "https://$input/".toHttpUrlOrNull()Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 3.5K bytes - Click Count (0) -
samples/guide/src/test/kotlin/okhttp3/AllMainsTest.kt
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 2.8K bytes - Click Count (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/ServeDocs.java
@Input protected abstract Property<Integer> getPort(); @Nested protected abstract Property<JavaLauncher> getJavaLauncher(); @TaskAction public void startApplication() { System.out.println("serving docs at http://localhost:" + getPort().get()); DeploymentRegistry registry = getDeploymentRegistry(); JavaApplicationHandle handle = registry.get(getPath(), JavaApplicationHandle.class);Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Thu Apr 18 12:38:47 GMT 2024 - 2.9K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/PostForm.kt
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 1.3K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/net/SmbShareInfoTest.java
assertEquals(0, info.getFileIndex()); } @ParameterizedTest @DisplayName("Test getType with different share types") @CsvSource({ "1, " + SmbConstants.TYPE_PRINTER, // Printer share "3, " + SmbConstants.TYPE_NAMED_PIPE, // Named pipe "0, " + SmbConstants.TYPE_SHARE, // Standard share "2, " + SmbConstants.TYPE_SHARE, // Unknown type defaults to share
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.3K bytes - Click Count (0) -
compat/maven-embedder/src/examples/simple-project/src/main/java/org/apache/maven/embedder/App.java
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Sun Mar 30 14:10:21 GMT 2025 - 996 bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/PostFile.kt
body = file.asRequestBody(MEDIA_TYPE_MARKDOWN), ) client.newCall(request).execute().use { response -> if (!response.isSuccessful) throw IOException("Unexpected code $response") println(response.body.string()) } } companion object { val MEDIA_TYPE_MARKDOWN = "text/x-markdown; charset=utf-8".toMediaType() } } fun main() { PostFile().run()
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 1.4K bytes - Click Count (0) -
src/cmd/api/boring_test.go
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Wed Aug 16 16:02:26 GMT 2023 - 300 bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/plugin/DefaultBuildPluginManager.java
new MojoExecutionEvent(session, project, mojoExecution, mojo, e)); ByteArrayOutputStream os = new ByteArrayOutputStream(1024); PrintStream ps = new PrintStream(os); ps.println( "A required class was missing while executing " + mojoDescriptor.getId() + ": " + e.getMessage()); pluginRealm.display(ps);
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Sep 17 16:01:38 GMT 2025 - 11.5K bytes - Click Count (0)