mirror of
https://github.com/square/okhttp.git
synced 2025-07-31 05:04:26 +03:00
Add a configurable AndroidLogging API (#7844)
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
public final class okhttp3/logging/HttpLoggingInterceptor : okhttp3/Interceptor {
|
||||
public static final field Companion Lokhttp3/logging/HttpLoggingInterceptor$Companion;
|
||||
public final fun -deprecated_level ()Lokhttp3/logging/HttpLoggingInterceptor$Level;
|
||||
public fun <init> ()V
|
||||
public fun <init> (Lokhttp3/logging/HttpLoggingInterceptor$Logger;)V
|
||||
@ -10,6 +11,9 @@ public final class okhttp3/logging/HttpLoggingInterceptor : okhttp3/Interceptor
|
||||
public final fun setLevel (Lokhttp3/logging/HttpLoggingInterceptor$Level;)Lokhttp3/logging/HttpLoggingInterceptor;
|
||||
}
|
||||
|
||||
public final class okhttp3/logging/HttpLoggingInterceptor$Companion {
|
||||
}
|
||||
|
||||
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;
|
||||
@ -30,6 +34,7 @@ public final class okhttp3/logging/HttpLoggingInterceptor$Logger$Companion {
|
||||
}
|
||||
|
||||
public final class okhttp3/logging/LoggingEventListener : okhttp3/EventListener {
|
||||
public static final field Companion Lokhttp3/logging/LoggingEventListener$Companion;
|
||||
public synthetic fun <init> (Lokhttp3/logging/HttpLoggingInterceptor$Logger;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||
public fun cacheConditionalHit (Lokhttp3/Call;Lokhttp3/Response;)V
|
||||
public fun cacheHit (Lokhttp3/Call;Lokhttp3/Response;)V
|
||||
@ -62,6 +67,9 @@ public final class okhttp3/logging/LoggingEventListener : okhttp3/EventListener
|
||||
public fun secureConnectStart (Lokhttp3/Call;)V
|
||||
}
|
||||
|
||||
public final class okhttp3/logging/LoggingEventListener$Companion {
|
||||
}
|
||||
|
||||
public class okhttp3/logging/LoggingEventListener$Factory : okhttp3/EventListener$Factory {
|
||||
public fun <init> ()V
|
||||
public fun <init> (Lokhttp3/logging/HttpLoggingInterceptor$Logger;)V
|
||||
|
@ -330,4 +330,6 @@ class HttpLoggingInterceptor
|
||||
val contentType = response.body.contentType()
|
||||
return contentType != null && contentType.type == "text" && contentType.subtype == "event-stream"
|
||||
}
|
||||
|
||||
companion object
|
||||
}
|
||||
|
@ -240,4 +240,6 @@ class LoggingEventListener private constructor(
|
||||
) : EventListener.Factory {
|
||||
override fun create(call: Call): EventListener = LoggingEventListener(logger)
|
||||
}
|
||||
|
||||
companion object
|
||||
}
|
||||
|
Reference in New Issue
Block a user