okhttp / okhttp3 / Cookie / httpOnly

httpOnly

fun httpOnly(): Boolean

Returns true if this cookie should be limited to only HTTP APIs. In web browsers this prevents the cookie from being accessible to scripts.