fun accept(mediaType: MediaType, f: (ServerRequest) -> Mono<out ServerResponse>): Unit
Route to the given handler function if the given accept predicate applies.
fun accept(vararg mediaTypes: MediaType): RequestPredicate
Return a RequestPredicate that tests if the request's accept header is compatible with any of the given media types.
mediaTypes - the media types to match the request's accept header against
a predicate that tests the request's accept header against the given media types