OkHttpRequest

class OkHttpRequest(request: Request, httpClient: OkHttpClient, requestDispatcher: CoroutineDispatcher = Dispatchers.IO) : Request

Okhttp implementation of Request

Constructors

Link copied to clipboard
fun OkHttpRequest(request: Request, httpClient: OkHttpClient, requestDispatcher: CoroutineDispatcher = Dispatchers.IO)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class RequestCallback(scope: ProducerScope<Request.Event>, httpClient: OkHttpClient, dispatcher: CoroutineDispatcher) : Callback

Functions

Link copied to clipboard
open suspend override fun body(): BufferedSource?
Link copied to clipboard
open suspend override fun execute(): OkHttpResponse
Link copied to clipboard
open override fun start(): Flow<Request.Event>

Properties

Link copied to clipboard
open override val headers: Headers
Link copied to clipboard
open override val method: Method
Link copied to clipboard
open override val uri: URI