diff options
author | Jesse Wilson <jwilson@squareup.com> | 2024-04-06 00:18:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-06 00:18:15 -0400 |
commit | 212e0e17aa1d89507db4c3654b652c4be5a6b91e (patch) | |
tree | 5645fdb79efdf5d8fd58a62831f7e9f875b02619 | |
parent | eaa7e8267c4f3392af2915f4aada2529f3e08840 (diff) | |
download | okhttp4-212e0e17aa1d89507db4c3654b652c4be5a6b91e.tar.gz |
Put EventSources.createFactory into the public API (#8336)
It really needs to be in the public API because the
function it replaces is deprecated.
-rw-r--r-- | okhttp-sse/src/main/kotlin/okhttp3/sse/EventSources.kt | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/okhttp-sse/src/main/kotlin/okhttp3/sse/EventSources.kt b/okhttp-sse/src/main/kotlin/okhttp3/sse/EventSources.kt index 70bb0af0b..88b8f47de 100644 --- a/okhttp-sse/src/main/kotlin/okhttp3/sse/EventSources.kt +++ b/okhttp-sse/src/main/kotlin/okhttp3/sse/EventSources.kt @@ -16,7 +16,6 @@ package okhttp3.sse import okhttp3.Call -import okhttp3.ExperimentalOkHttpApi import okhttp3.OkHttpClient import okhttp3.Response import okhttp3.sse.internal.RealEventSource @@ -30,7 +29,6 @@ object EventSources { fun createFactory(client: OkHttpClient) = createFactory(client as Call.Factory) @JvmStatic - @ExperimentalOkHttpApi fun createFactory(callFactory: Call.Factory): EventSource.Factory { return EventSource.Factory { request, listener -> val actualRequest = |