strikt-spring / strikt.spring / strikt.api.Assertion.Builder / contentType

contentType

val <T : ServletResponse> Builder<T>.contentType: Builder<MediaType?>

Maps this assertion to an assertion on the content type of the servlet response. If the subject has no Content-Type header the subject of the mapped assertion is null.