okhttp / okhttp3 / OkHttpClient / Builder / cookieJar

cookieJar

fun cookieJar(cookieJar: CookieJar): OkHttpClient.Builder

Sets the handler that can accept cookies from incoming HTTP responses and provides cookies to outgoing HTTP requests.

If unset, no cookies will be accepted nor provided.