//jvm-okhttp-http-client/com.petersamokhin.vksdk.http/VkOkHttpClient
VkOkHttpClient¶
[jvm]\ @ExperimentalCoroutinesApi()
class VkOkHttpClient : HttpClient
HTTP client based on OkHttp
Constructors¶
VkOkHttpClient | [jvm] @JvmOverloads() fun VkOkHttpClient(config: HttpClientConfig = HttpClientConfig()) |
VkOkHttpClient | [jvm] fun VkOkHttpClient(overrideClient: OkHttpClient) |
Functions¶
Name | Summary |
---|---|
applyConfig | [jvm] open override fun applyConfig(config: HttpClientConfig) Apply client configuration |
get | [jvm] open suspend override fun get(url: String): Response Make GET request |
post | [jvm] open suspend override fun post(url: String, body: ByteArray, bodyContentType: ContentType): Response Make POST request |
postMultipart | [jvm] open suspend override fun postMultipart(uploadUrl: String, items: List Upload file(s) to this URL |