vertx / io.vertx.reactivex.ext.auth.oauth2 / OAuth2Response / is

is

open fun is(contentType: String): Boolean

Helper to analize the response body. The test is performed against the header Content-Type, the content of the body is not analyzed.

Parameters

contentType - a content type to test, e.g.: application/json

Return
true if the header matches