protobuf
fun Configuration.protobuf(protobuf: ProtoBuf = DefaultProtoBuf, contentType: ContentType = ContentType.Application.ProtoBuf)(source)
Registers the application/protobuf
(or another specified contentType) content type to the ContentNegotiation plugin using kotlinx.serialization.
You can learn more from the corresponding client and server documentation.
Parameters
protobuf
format instance (optional)
contentType
to register with, application/protobuf
by default