api

http4k / org.http4k.testing / ApprovalContent

ApprovalContent

interface ApprovalContent (source)

Determines which parts of the HttpMessage will be compared.

Functions

Name Summary
invoke abstract operator fun invoke(input: InputStream): InputStream
abstract operator fun invoke(input: HttpMessage): InputStream

Companion Object Functions

Name Summary
EntireHttpMessage fun EntireHttpMessage(): ApprovalContent
HttpBodyOnly fun HttpBodyOnly(formatter: (String) -> String = { it }): ApprovalContent

Extension Functions

Name Summary
with fun <T> T.with(vararg modifiers: (T) -> T): T