HttpRequestServiceImpl

class HttpRequestServiceImpl(client: HttpClient) : HttpRequestService

Author

Udhaya

Constructors

Link copied to clipboard
fun HttpRequestServiceImpl(client: HttpClient)

Types

Link copied to clipboard
object Companion

Functions

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

Makes Http request

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

Used to estimate size of given url in bytes

Link copied to clipboard
open suspend override fun headRawResponse(url: String, headers: <Error class: unknown class><String, String>?, followRedirect: Boolean): HttpResponse?

Makes Http request

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