mirror of
https://github.com/square/okhttp.git
synced 2025-08-06 01:35:50 +03:00
Mechanically tag all new APIs as @ExperimentalOkHttpApi (#8216)
* Mechanically tag all new APIs as @ExperimentalOkHttpApi In a follow-up PR I intend to remove the annotation on any API that we're willing to commit to for OkHttp 5.0.0. In a follow-up PR I'd also like to hide all remaining APIs from Java langauge callers. * Opt-in ExperimentalOkHttpApi for Android projects too --------- Co-authored-by: Benoit Quenaudon <benoit@quenaudon.com>
This commit is contained in:
@@ -23,6 +23,7 @@ import java.net.HttpCookie
|
||||
import java.util.Collections
|
||||
import okhttp3.Cookie
|
||||
import okhttp3.CookieJar
|
||||
import okhttp3.ExperimentalOkHttpApi
|
||||
import okhttp3.HttpUrl
|
||||
import okhttp3.internal.cookieToString
|
||||
import okhttp3.internal.delimiterOffset
|
||||
@@ -31,6 +32,7 @@ import okhttp3.internal.platform.Platform.Companion.WARN
|
||||
import okhttp3.internal.trimSubstring
|
||||
|
||||
/** A cookie jar that delegates to a [java.net.CookieHandler]. */
|
||||
@ExperimentalOkHttpApi
|
||||
class JavaNetCookieJar(private val cookieHandler: CookieHandler) : CookieJar {
|
||||
override fun saveFromResponse(
|
||||
url: HttpUrl,
|
||||
|
Reference in New Issue
Block a user