- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for LoggingInterceptor (0.09 sec)
-
samples/guide/src/main/java/okhttp3/recipes/LoggingInterceptors.java
.addInterceptor(new LoggingInterceptor()) .build(); public void run() throws Exception { Request request = new Request.Builder() .url("https://publicobject.com/helloworld.txt") .build(); Response response = client.newCall(request).execute(); response.body().close(); } private static class LoggingInterceptor implements Interceptor {
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Jan 01 15:55:32 UTC 2016 - 2K bytes - Viewed (0) -
android-test/build.gradle.kts
testImplementation(libs.junit) testImplementation(libs.junit.ktx) testImplementation(libs.assertk) testImplementation(projects.okhttpTls) "friendsTestImplementation"(projects.loggingInterceptor) testImplementation(libs.androidx.test.runner) testImplementation(libs.robolectric) testImplementation(libs.androidx.espresso.core) testImplementation(libs.squareup.okio.fakefilesystem)
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Nov 21 12:33:41 UTC 2025 - 3.9K bytes - Viewed (2) -
module-tests/build.gradle.kts
id("org.gradlex.extra-java-module-info") version "1.13.1" } dependencies { implementation(projects.okhttp) implementation(projects.loggingInterceptor) testImplementation(projects.okhttp) testImplementation(projects.loggingInterceptor) testImplementation(projects.mockwebserver3) testImplementation(projects.mockwebserver3Junit5) testImplementation(libs.junit.jupiter.api)
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sun Sep 21 06:45:42 UTC 2025 - 1.6K bytes - Viewed (0) -
okcurl/build.gradle.kts
} kotlin { sourceSets { val main by getting { resources.srcDir(copyResourcesTemplates.get().outputs) } } } dependencies { api(projects.okhttp) api(projects.loggingInterceptor) api(libs.squareup.okio) implementation(libs.clikt) testApi(libs.assertk) testImplementation(kotlin("test")) } configure<AnimalSnifferExtension> { isIgnoreFailures = true }Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Jul 22 20:31:49 UTC 2025 - 1.6K bytes - Viewed (0) -
docs/features/interceptors.md
Interceptors are registered as either _application_ or _network_ interceptors. We'll use the `LoggingInterceptor` defined above to show the difference. Register an _application_ interceptor by calling `addInterceptor()` on `OkHttpClient.Builder`: ```java OkHttpClient client = new OkHttpClient.Builder() .addInterceptor(new LoggingInterceptor()) .build(); Request request = new Request.Builder()
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sun Feb 06 02:19:09 UTC 2022 - 8.1K bytes - Viewed (0) -
okhttp-osgi-tests/build.gradle.kts
} dependencies { implementation(projects.okhttp) implementation(projects.okhttpBrotli) implementation(projects.okhttpCoroutines) implementation(projects.okhttpDnsoverhttps) implementation(projects.loggingInterceptor) implementation(projects.okhttpSse) implementation(projects.okhttpTls) implementation(projects.okhttpUrlconnection) testImplementation(projects.okhttpTestingSupport) testImplementation(libs.junit)Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Aug 01 08:17:18 UTC 2025 - 2.5K bytes - Viewed (0) -
docs/changelogs/changelog_2x.md
</dependency> ``` Configure basic logging like this: ```java HttpLoggingInterceptor loggingInterceptor = new HttpLoggingInterceptor(); loggingInterceptor.setLevel(HttpLoggingInterceptor.Level.BASIC); client.networkInterceptors().add(loggingInterceptor); ``` **Warning:** Avoid `Level.HEADERS` and `Level.BODY` in production becauseRegistered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sun Feb 06 02:19:09 UTC 2022 - 26.6K bytes - Viewed (0) -
okhttp/build.gradle.kts
implementation(projects.mockwebserver3Junit4) implementation(projects.mockwebserver3Junit5) implementation(projects.mockwebserver) implementation(projects.loggingInterceptor) implementation(projects.okhttpBrotli) implementation(projects.okhttpDnsoverhttps) implementation(projects.okhttpIdnaMappingTable) implementation(projects.okhttpSse)
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sat Nov 01 12:18:11 UTC 2025 - 12.3K bytes - Viewed (0)