headers

fun headers(headersPredicate: (RequestHeaders) -> Boolean): RequestPredicate

Return a RequestPredicate that tests the request's headers against the given headers predicate.

Return

a predicate that tests against the given header predicate

Parameters

headersPredicate

a predicate that tests against the request headers