OkHttpUtils
Utility class for making HTTP requests using OkHttp library.
Parameters
url
the base URL of the API to be called
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Converts an array of key-value pairs to a JSON string.
Link copied to clipboard
Link copied to clipboard
fun startRequest(method: Methods, formParameters: String? = null, queryParameters: String? = null, headers: String? = null, listener: OkHttpListener)
Starts an HTTP request using OkHttp library.