expectHttpUpgrade

fun expectHttpUpgrade(method: HttpMethod, upgrade: CharSequence?, connectionOptions: ConnectionOptions?): Boolean

Return

true if an http upgrade is expected accoding to request method, upgrade header value and parsed connectionOptions


fun expectHttpUpgrade(request: Request): Boolean

Return

true if an http upgrade is expected according to request