- Sort Score
- Num 10 results
- Language All
Results 161 - 170 of 262 for Fprintln (0.1 seconds)
-
samples/guide/src/main/java/okhttp3/recipes/PreemptiveAuth.java
.build(); try (Response response = client.newCall(request).execute()) { if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); System.out.println(response.body().string()); } } public static void main(String... args) throws Exception { new PreemptiveAuth().run(); } static final class BasicAuthInterceptor implements Interceptor {
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Mon Nov 05 07:46:46 GMT 2018 - 2.1K bytes - Click Count (0) -
maven-tests/src/main/java/com/squareup/okhttp3/maventest/SampleHttpClient.java
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Jul 12 12:05:57 GMT 2025 - 1.1K bytes - Click Count (0) -
docs/debugging/inspect/export.go
} fmt.Printf("\t%s: ", string(b)) b, e = decode(r, file.Name) if e != nil { return e } fmt.Print(string(b)) hasWritten = true } } fmt.Println("") fmt.Println("}") return nil } var ( // XL header specifies the format xlHeader = [4]byte{'X', 'L', '2', ' '} // Current version being written. xlVersionCurrent [4]byte )
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 9.2K bytes - Click Count (1) -
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) -
okhttp/src/jvmTest/kotlin/okhttp3/CorrettoTest.kt
client.newCall(request).execute().use { assertThat(it.protocol).isEqualTo(Protocol.HTTP_2) if (it.handshake!!.tlsVersion != TlsVersion.TLS_1_3) { System.err.println("Flaky TLSv1.3 with google") // assertThat(it.handshake()!!.tlsVersion).isEqualTo(TlsVersion.TLS_1_3) } } } @Test fun testIfSupported() {Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 2.1K bytes - Click Count (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/GenerateDefaultImports.java
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Mar 12 15:56:21 GMT 2025 - 2.3K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/CertificatePinning.java
if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); for (Certificate certificate : response.handshake().peerCertificates()) { System.out.println(CertificatePinner.pin(certificate)); } } } public static void main(String... args) throws Exception { new CertificatePinning().run(); }
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sun Dec 08 21:30:01 GMT 2019 - 1.7K bytes - Click Count (0) -
module-tests/src/test/java/okhttp3/modules/test/JavaModuleTest.java
server.start(); // Just check we can run code that depends on OkHttp types Call call = OkHttpCaller.callOkHttp(server.url("/")); try (Response response = call.execute();) { System.out.println(response.body().string()); } } @Test public void testModules() { Module okHttpModule = OkHttpClient.class.getModule(); assertEquals("okhttp3", okHttpModule.getName());
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sun Sep 21 06:22:22 GMT 2025 - 2.1K bytes - Click Count (0)