highlight Body
fun highlightBody(body: String, contentType: ContentType, useColor: Boolean = isColorSupported()): String(source)
Applies ANSI color highlighting to an HTTP body string based on its content type.
Return
The highlighted body string with ANSI color codes.
Parameters
body
The HTTP body content to highlight.
content Type
The content type of the body.