//core/com.petersamokhin.vksdk.core.http/HttpClient
HttpClient¶
[common]\ interface HttpClient
Abstract HTTP client
Functions¶
Name | Summary |
---|---|
applyConfig | [common] abstract fun applyConfig(config: HttpClientConfig) Apply client configuration |
get | [common] abstract suspend fun get(url: String): Response Make GET request |
post | [common] abstract suspend fun post(url: String, body: ByteArray, bodyContentType: ContentType): Response Make POST request |
postMultipart | [common] abstract suspend fun postMultipart(uploadUrl: String, items: List<UploadableContent>): Response Upload file(s) to this URL |