Skip to content

//core/com.petersamokhin.vksdk.core.http

Package com.petersamokhin.vksdk.core.http

Types

Name Summary
ContentType [common]
enum ContentType : Enum<ContentType>
HTTP request content type
HttpClient [common]
interface HttpClient
Abstract HTTP client
HttpClientConfig [common]
data class HttpClientConfig(connectTimeout: Int, readTimeout: Int, defaultHeaders: Map<String, String>)
Abstract HTTP Client config
Parameters [common]
class Parameters
Common class with parameters.
Response [common]
data class Response(code: Int, body: ByteArray?)
Minimal required information about the HTTP request response.

Functions

Name Summary
paramsOf [common]
fun paramsOf(vararg pairs: Pair<String, Any?>): Parameters
Make a parameters map from pairs.
[common]
fun paramsOf(vararg arr: String): Parameters
Make a parameters map from strings.
[common]
fun paramsOf(map: Map<String, Any?>): Parameters
Make a parameters map from map.