SerializationEngine

interface SerializationEngine<Format : SerialFormat>

A wrapper for a SerialFormat that can produce BodyFormats.

Type Parameters

Format

The type of SerialFormat used.

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val contentType: String

The content type for this serialization format.

Link copied to clipboard
abstract val default: Format

The default instance of the SerialFormat.

Functions

Link copied to clipboard
abstract fun <T> createFormat(serializer: KSerializer<T>): BodyFormat<T>

Creates a BodyFormat for the given serializer.

Link copied to clipboard
abstract fun decodeIssue(bytes: ByteArray): Issue

Decodes an Issue from the given bytes.

Link copied to clipboard
abstract fun encodeIssue(issue: Issue): ByteArray

Encodes an Issue to a byte array.