exclude

fun HttpRequestBuilder.exclude(vararg contentType: ContentType)

Excludes the given ContentType from the list of types that will be sent in the Accept header by the ContentNegotiation plugin. Can be used to not accept specific types for particular requests. This can be called multiple times to exclude multiple content types, or multiple content types can be passed in a single call.

Report a problem