HttpRequestService

Author

Udhaya Created on 21-01-2022

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract suspend fun checkPageAvailability(url: String, headers: <Error class: unknown class><String, String>? = null): Boolean
Link copied to clipboard
abstract fun close()
Link copied to clipboard
abstract suspend fun getRawResponse(url: String, headers: <Error class: unknown class><String, String>? = null, followRedirect: Boolean = true): HttpResponse?

Makes Http request

Link copied to clipboard
abstract suspend fun getResponse(url: String, headers: <Error class: unknown class><String, String>? = null): String?
Link copied to clipboard
abstract suspend fun getSize(url: String, headers: <Error class: unknown class><String, String>? = null): Long

Used to estimate size of given url in bytes

Link copied to clipboard
abstract suspend fun headRawResponse(url: String, headers: <Error class: unknown class><String, String>? = null, followRedirect: Boolean = true): HttpResponse?

Makes Http request

Link copied to clipboard
abstract suspend fun postRawResponse(url: String, headers: <Error class: unknown class><String, String>? = null, postData: <Error class: unknown class><String, Any>? = null, followRedirect: Boolean = true): HttpResponse?
Link copied to clipboard
abstract suspend fun postRequest(url: String, headers: <Error class: unknown class><String, String>? = null, postData: <Error class: unknown class><String, Any>? = null): String?

Inheritors

Link copied to clipboard