DefaultContentNegotiationService

Default implementation of content negotiation.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open suspend override fun deserializeDocument(data: ByteArray, contentType: String): DidDocument

Deserialize document from content type.

Link copied to clipboard
open suspend override fun negotiateContentType(acceptHeader: String?, defaultType: String = DidMediaTypes.DID): String

Negotiate content type from Accept header.

Link copied to clipboard
open suspend override fun serializeDocument(document: DidDocument, contentType: String): ByteArray

Serialize document to requested content type.