toCurl

fun NetworkLogEntry.toCurl(redactHeaders: Set<String> = DEFAULT_REDACTED_HEADERS): String

Renders this entry as a copy-pasteable curl command for local replay.

Sensitive headers are replaced with <redacted> by default — see DEFAULT_REDACTED_HEADERS. Pass an empty set to disable that, but understand what you are pasting: the raw values are still on NetworkLogEntry.requestHeaders, so a local debug screen can show them without this function being the thing that leaks them.

ponytail: no shell-escaping of embedded quotes. A body containing ' produces a command you have to fix by hand. Proper escaping is a real parser and this is a debug convenience — the ceiling is deliberate, not overlooked.