Make utility LoggingContent internal

This commit is contained in:
Sergey Mashkov
2020-02-03 15:46:21 +03:00
parent 3a3e8538b6
commit edbff55652
2 changed files with 1 additions and 7 deletions

View File

@@ -53,12 +53,6 @@ public final class io/ktor/client/features/logging/Logging$Config {
public final fun setLogger (Lio/ktor/client/features/logging/Logger;)V
}
public final class io/ktor/client/features/logging/LoggingContent : io/ktor/http/content/OutgoingContent$ReadChannelContent {
public fun <init> (Lio/ktor/utils/io/ByteReadChannel;)V
public final fun getChannel ()Lio/ktor/utils/io/ByteReadChannel;
public fun readFrom ()Lio/ktor/utils/io/ByteReadChannel;
}
public final class io/ktor/client/features/logging/LoggingKt {
public static final fun Logging (Lio/ktor/client/HttpClientConfig;Lkotlin/jvm/functions/Function1;)V
public static synthetic fun Logging$default (Lio/ktor/client/HttpClientConfig;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V

View File

@@ -33,7 +33,7 @@ internal suspend fun OutgoingContent.observe(log: ByteWriteChannel): OutgoingCon
}
}
class LoggingContent(val channel: ByteReadChannel) : OutgoingContent.ReadChannelContent() {
internal class LoggingContent(private val channel: ByteReadChannel) : OutgoingContent.ReadChannelContent() {
override fun readFrom(): ByteReadChannel = channel
}