FirebaseUrlFactory

class FirebaseUrlFactory(client: Call.Factory) : URLStreamHandlerFactory

URLStreamHandlerFactory for use with Firebase. Register with URL#setURLStreamHandlerFactory.

OkHttp 3.14 dropped support for the long-deprecated OkUrlFactory class, which allows you to use the HttpURLConnection API with OkHttp's implementation. This class does the same thing using only public APIs in OkHttp.

From https://gist.github.com/swankjesse/dd91c0a8854e1559b00f5fc9c7bfae70

Constructors

Link copied to clipboard
constructor(client: Call.Factory)

Functions

Link copied to clipboard
open override fun createURLStreamHandler(protocol: String): URLStreamHandler?

Creates a URLStreamHandler as a java.net.URL.setURLStreamHandlerFactory.