protobuf

fun Configuration.protobuf(protobuf: ProtoBuf = DefaultProtoBuf, contentType: ContentType = ContentType.Application.ProtoBuf)

Registers the application/protobuf (or another specified contentType) content type to the ContentNegotiation plugin using kotlinx.serialization.

You can learn more from Content negotiation and serialization.

Parameters

protobuf

format instance (optional)

contentType

to register with, application/protobuf by default