Skip to content

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 04 Aug 14:07
· 21 commits to main since this release

Added

  • problem-details-ktor-client-xmlproblemXml() registers the same kind of
    HttpResponseValidator hook as problem-details-ktor-client's problemJson(), for responses
    labeled application/problem+xml. Its own artifact, so a client that only decodes JSON never
    resolves an XML parser. Registration order does not matter, unlike the server's
    ContentNegotiation pair: each hook gates on a Content-Type the other never matches, so neither
    can shadow the other. There is no lenient mode — plain application/xml never matches — and a body
    labeled application/problem+xml that fails to decode propagates as SerializationException
    rather than falling back to Ktor's own exception.

API reference · Maven Central