Highlighting

Functions

Link copied to clipboard
fun highlightBody(body: JsonElement, useColor: Boolean = isColorSupported()): String

Applies ANSI color highlighting to a JsonElement for terminal output.

fun highlightBody(body: String, contentType: ContentType, useColor: Boolean = isColorSupported()): String

Applies ANSI color highlighting to an HTTP body string based on its content type.