CSOkHttpClient

class CSOkHttpClient(val url: String)

Constructors

Link copied to clipboard
fun CSOkHttpClient(url: String)

Functions

Link copied to clipboard
fun basicAuthenticatorHeader(    name: String,     username: String,     password: String)
Link copied to clipboard
fun onCookiesReceived(function: (List<Cookie>) -> Unit): CSRegistration
Link copied to clipboard
fun timeouts(    connection: Long,     read: Long,     write: Long): CSOkHttpClient

Properties

Link copied to clipboard
val client: OkHttpClient
Link copied to clipboard
val eventCookiesReceived: CSEvent<List<Cookie>>
Link copied to clipboard
var hostNameVerifier: HostnameVerifier? = null
Link copied to clipboard
val url: String

Extensions

Link copied to clipboard
fun <ServerDataType : CSHttpResponseData> CSOkHttpClient.get(    url: String,     data: ServerDataType,     params: Map<String, String> = emptyMap()): CSHttpProcess<ServerDataType>
fun <ServerDataType : CSHttpResponseData> CSOkHttpClient.get(    operation: CSOperation<*>?,     service: String,     data: ServerDataType,     params: Map<String, String> = emptyMap()): CSHttpProcess<ServerDataType>
Link copied to clipboard
fun <ResponseData : CSHttpResponseData> CSOkHttpClient.post(    service: String,     responseData: ResponseData,     params: Map<String, String>): CSHttpProcess<ResponseData>
fun <ResponseData : CSHttpResponseData> CSOkHttpClient.post(    service: String,     responseData: ResponseData,     data: JSONObject): CSHttpProcess<ResponseData>
fun <ResponseData : CSHttpResponseData> CSOkHttpClient.post(    url: String,     data: CSJsonObject,     responseData: ResponseData): CSHttpProcess<ResponseData>
Link copied to clipboard
fun <ResponseData : CSHttpResponseData> CSOkHttpClient.postJson(    service: String,     responseData: ResponseData,     data: Map<String, *>): CSHttpProcess<ResponseData>
fun <ResponseData : CSHttpResponseData> CSOkHttpClient.postJson(    service: String,     responseData: ResponseData,     data: List<*>): CSHttpProcess<ResponseData>
Link copied to clipboard
fun <ResponseData : CSHttpResponseData> CSOkHttpClient.postJsonObject(    service: String,     responseData: ResponseData,     data: String): CSHttpProcess<ResponseData>
Link copied to clipboard
fun <ServerDataType : CSHttpResponseData> CSOkHttpClient.upload(    service: String,     file: File,     data: ServerDataType): CSHttpProcess<ServerDataType>