- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for HttpLoggingInterceptor (0.35 sec)
-
okhttp-logging-interceptor/api/logging-interceptor.api
} public final class okhttp3/logging/HttpLoggingInterceptor$Level : java/lang/Enum { public static final field BASIC Lokhttp3/logging/HttpLoggingInterceptor$Level; public static final field BODY Lokhttp3/logging/HttpLoggingInterceptor$Level; public static final field HEADERS Lokhttp3/logging/HttpLoggingInterceptor$Level; public static final field NONE Lokhttp3/logging/HttpLoggingInterceptor$Level;
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 06 09:14:38 GMT 2024 - 4.5K bytes - Viewed (1) -
okhttp-android/src/main/kotlin/okhttp3/android/AndroidLogging.kt
) = LoggingEventListener.Factory { Log.println(priority, tag, it) } /** * An OkHttp [HttpLoggingInterceptor], with android Log as the target. */ fun HttpLoggingInterceptor.Companion.androidLogging( priority: Int = Log.INFO, tag: String = "OkHttp",
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 01 11:07:32 GMT 2024 - 1.2K bytes - Viewed (0) -
okhttp-logging-interceptor/README.md
```java HttpLoggingInterceptor logging = new HttpLoggingInterceptor(); logging.setLevel(Level.BASIC); OkHttpClient client = new OkHttpClient.Builder() .addInterceptor(logging) .build(); ``` You can change the log level at any time by calling `setLevel()`. To log to a custom location, pass a `Logger` instance to the constructor. ```java
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Dec 17 15:34:10 GMT 2023 - 1.3K bytes - Viewed (0) -
okhttp-android/api/okhttp-android.api
public static final fun androidLogging (Lokhttp3/logging/HttpLoggingInterceptor$Companion;ILjava/lang/String;)Lokhttp3/logging/HttpLoggingInterceptor; public static final fun androidLogging (Lokhttp3/logging/LoggingEventListener$Companion;ILjava/lang/String;)Lokhttp3/logging/LoggingEventListener$Factory;
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 01 11:07:32 GMT 2024 - 1.3K bytes - Viewed (1) -
okhttp-android/src/test/kotlin/okhttp3/android/AndroidLoggingTest.kt
} val request = Request("http://google.com/robots.txt".toHttpUrl()) @Test fun testHttpLoggingInterceptor() { val interceptor = HttpLoggingInterceptor.androidLogging(tag = "testHttpLoggingInterceptor").apply { level = HttpLoggingInterceptor.Level.BASIC } val client = clientBuilder.addInterceptor(interceptor).build() try { client.newCall(request).execute()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 01 11:07:32 GMT 2024 - 3.2K bytes - Viewed (0) -
okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/LoggingEventListener.kt
logger.log("[$timeMs ms] $message") } open class Factory @JvmOverloads constructor( private val logger: HttpLoggingInterceptor.Logger = HttpLoggingInterceptor.Logger.DEFAULT, ) : EventListener.Factory { override fun create(call: Call): EventListener = LoggingEventListener(logger) } companion object
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 01 11:07:32 GMT 2024 - 5.4K bytes - Viewed (0) -
okcurl/src/main/kotlin/okhttp3/curl/Main.kt
import okhttp3.Request import okhttp3.curl.internal.commonCreateRequest 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.") {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 5.7K bytes - Viewed (1)