class JsonPlugin

HttpClient plugin that serializes/de-serializes as JSON custom objects to request and from response bodies using a serializer.

The default serializer is GsonSerializer.

The default acceptContentTypes is a list which contains ContentType.Application.Json

Note: It will de-serialize the body response if the specified type is a public accessible class and the Content-Type is one of acceptContentTypes list (application/json by default).


Link copied to clipboard
class Config

JsonPlugin configuration that is used during installation

Link copied to clipboard
object Plugin : HttpClientPlugin<JsonPlugin.Config, JsonPlugin>

Companion object for plugin installation


Link copied to clipboard
val acceptContentTypes: List<ContentType>

that are allowed when receiving content

Link copied to clipboard
val serializer: JsonSerializer

that is used to serialize and deserialize request/response bodies