api

http4k / org.http4k.kotest / haveBody

haveBody

fun <T : HttpMessage> haveBody(expected: Matcher<Body>): Matcher<T> @JvmName("haveBodyNullableStringMatcher") fun <T : HttpMessage> haveBody(expected: Matcher<String?>): Matcher<T> fun <T : HttpMessage> haveBody(expected: String): Matcher<T> fun <T : HttpMessage> haveBody(expected: Regex): Matcher<T> fun <T : HttpMessage, B> haveBody(lens: BodyLens<B>, matcher: Matcher<B>): Matcher<T> fun <NODE> Json<NODE>.haveBody(expected: NODE): Matcher<HttpMessage> fun <NODE> Json<NODE>.haveBody(expected: Matcher<NODE>): Matcher<HttpMessage> fun <NODE> Json<NODE>.haveBody(expected: String): Matcher<HttpMessage>