okhttp / okhttp3 / CookieJar / loadForRequest

loadForRequest

abstract fun loadForRequest(url: HttpUrl): List<Cookie>

Load cookies from the jar for an HTTP request to url. This method returns a possibly empty list of cookies for the network request.

Simple implementations will return the accepted cookies that have not yet expired and that match url.