/**
* Sets the handler that can accept cookies from incoming HTTP responses and provides cookies to
* outgoing HTTP requests.
*
* If unset, [no cookies][CookieJar.NO_COOKIES] will be accepted nor provided.
*/
fun cookieJar(cookieJar: CookieJar) = apply {
this.cookieJar = cookieJar
}
谢谢老师,看了你的视频我找到了Android实习岗位,谢谢!!
Retrofit是对OkHttp的封装,你给okhttpClient配置就好