Http Client
object HttpClient
Types
Link copied to clipboard
object MediaTypes
Properties
Functions
Link copied to clipboard
suspend fun request(url: String, method: HttpMethod, agent: String = DEFAULT_AGENT, headers: Headers.Builder.() -> Unit = {}, body: RequestBody? = null, progressListener: OkHttpProgressInterceptor.ProgressListener? = null): Response
Link copied to clipboard
For Java and JS. Cancelling the returned future also cancels the HTTP call.