Skip to content

Commit

Permalink
Update client content negotiation APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
rocketraman committed Nov 14, 2024
1 parent e6a57cf commit b58d0bc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,18 @@ public final class io/ktor/client/plugins/contentnegotiation/ContentConverterExc
public final class io/ktor/client/plugins/contentnegotiation/ContentNegotiationConfig : io/ktor/serialization/Configuration {
public fun <init> ()V
public final fun clearIgnoredTypes ()V
public final fun getDefaultAcceptHeaderQValue ()Ljava/lang/String;
public final fun ignoreType (Lkotlin/reflect/KClass;)V
public final fun register (Lio/ktor/http/ContentType;Lio/ktor/serialization/ContentConverter;Lio/ktor/http/ContentTypeMatcher;Lkotlin/jvm/functions/Function1;)V
public fun register (Lio/ktor/http/ContentType;Lio/ktor/serialization/ContentConverter;Lkotlin/jvm/functions/Function1;)V
public final fun removeIgnoredType (Lkotlin/reflect/KClass;)V
public final fun setDefaultAcceptHeaderQValue (Ljava/lang/String;)V
}

public final class io/ktor/client/plugins/contentnegotiation/ContentNegotiationKt {
public static final fun exclude (Lio/ktor/client/request/HttpRequestBuilder;[Lio/ktor/http/ContentType;)V
public static final fun getContentNegotiation ()Lio/ktor/client/plugins/api/ClientPlugin;
public static final fun getExcludeContentTypes ()Lio/ktor/util/AttributeKey;
}

public final class io/ktor/client/plugins/contentnegotiation/JsonContentTypeMatcher : io/ktor/http/ContentTypeMatcher {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ final class io.ktor.client.plugins.contentnegotiation/ContentConverterException
final class io.ktor.client.plugins.contentnegotiation/ContentNegotiationConfig : io.ktor.serialization/Configuration { // io.ktor.client.plugins.contentnegotiation/ContentNegotiationConfig|null[0]
constructor <init>() // io.ktor.client.plugins.contentnegotiation/ContentNegotiationConfig.<init>|<init>(){}[0]

final var defaultAcceptHeaderQValue // io.ktor.client.plugins.contentnegotiation/ContentNegotiationConfig.defaultAcceptHeaderQValue|{}defaultAcceptHeaderQValue[0]
final fun <get-defaultAcceptHeaderQValue>(): kotlin/String? // io.ktor.client.plugins.contentnegotiation/ContentNegotiationConfig.defaultAcceptHeaderQValue.<get-defaultAcceptHeaderQValue>|<get-defaultAcceptHeaderQValue>(){}[0]
final fun <set-defaultAcceptHeaderQValue>(kotlin/String?) // io.ktor.client.plugins.contentnegotiation/ContentNegotiationConfig.defaultAcceptHeaderQValue.<set-defaultAcceptHeaderQValue>|<set-defaultAcceptHeaderQValue>(kotlin.String?){}[0]

final fun <#A1: io.ktor.serialization/ContentConverter> register(io.ktor.http/ContentType, #A1, io.ktor.http/ContentTypeMatcher, kotlin/Function1<#A1, kotlin/Unit>) // io.ktor.client.plugins.contentnegotiation/ContentNegotiationConfig.register|register(io.ktor.http.ContentType;0:0;io.ktor.http.ContentTypeMatcher;kotlin.Function1<0:0,kotlin.Unit>){0§<io.ktor.serialization.ContentConverter>}[0]
final fun <#A1: io.ktor.serialization/ContentConverter> register(io.ktor.http/ContentType, #A1, kotlin/Function1<#A1, kotlin/Unit>) // io.ktor.client.plugins.contentnegotiation/ContentNegotiationConfig.register|register(io.ktor.http.ContentType;0:0;kotlin.Function1<0:0,kotlin.Unit>){0§<io.ktor.serialization.ContentConverter>}[0]
final fun clearIgnoredTypes() // io.ktor.client.plugins.contentnegotiation/ContentNegotiationConfig.clearIgnoredTypes|clearIgnoredTypes(){}[0]
Expand All @@ -28,3 +32,7 @@ final object io.ktor.client.plugins.contentnegotiation/JsonContentTypeMatcher :

final val io.ktor.client.plugins.contentnegotiation/ContentNegotiation // io.ktor.client.plugins.contentnegotiation/ContentNegotiation|{}ContentNegotiation[0]
final fun <get-ContentNegotiation>(): io.ktor.client.plugins.api/ClientPlugin<io.ktor.client.plugins.contentnegotiation/ContentNegotiationConfig> // io.ktor.client.plugins.contentnegotiation/ContentNegotiation.<get-ContentNegotiation>|<get-ContentNegotiation>(){}[0]
final val io.ktor.client.plugins.contentnegotiation/ExcludeContentTypes // io.ktor.client.plugins.contentnegotiation/ExcludeContentTypes|{}ExcludeContentTypes[0]
final fun <get-ExcludeContentTypes>(): io.ktor.util/AttributeKey<kotlin.collections/List<io.ktor.http/ContentType>> // io.ktor.client.plugins.contentnegotiation/ExcludeContentTypes.<get-ExcludeContentTypes>|<get-ExcludeContentTypes>(){}[0]

final fun (io.ktor.client.request/HttpRequestBuilder).io.ktor.client.plugins.contentnegotiation/exclude(kotlin/Array<out io.ktor.http/ContentType>...) // io.ktor.client.plugins.contentnegotiation/exclude|exclude@io.ktor.client.request.HttpRequestBuilder(kotlin.Array<out|io.ktor.http.ContentType>...){}[0]

0 comments on commit b58d0bc

Please sign in to comment.