Package-level declarations

Types

Link copied to clipboard
class GsonConverter(gson: Gson = Gson()) : ContentConverter

A GSON converter for the ContentNegotiation plugin.

Link copied to clipboard

GSON converter for the WebSockets plugin

Functions

Link copied to clipboard
fun Configuration.gson(contentType: ContentType = ContentType.Application.Json, block: GsonBuilder.() -> Unit = {})

Registers the application/json content type to the ContentNegotiation plugin using GSON.