HttpFormatter

constructor(theme: ColorTheme = ColorTheme.LIGHT_ON_DARK, useColor: Boolean = isColorSupported(), json: Json = DefaultJson)(source)

Parameters

theme

The color theme to be applied for formatting.

useColor

Boolean flag indicating whether ANSI color codes should be used in the formatting output.

json

The Json instance used to encode typed response bodies for display. Should match the instance used by Ktor's ContentNegotiation so that custom kotlinx.serialization.modules.SerializersModule registrations are reflected in logs.