Builder

data class Builder(val appName: String, val appVersion: String)

We may need to pass some compulsory values to the builder. Mandatory param values are part of the constructor.

Parameters

appName

mandatory param for the current app name that is using the client

appVersion

mandatory param for the current app version of client

Constructors

Link copied to clipboard
constructor(appName: String, appVersion: String)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var host: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun build(): Config
Link copied to clipboard

should log https requests

Link copied to clipboard

set HttpTimeout connection Timeout in Millis If not set, it will default to CONNECTION_TIME_OUT_MILLIS in constant as default

Link copied to clipboard

set the build enviroment if not set, it will default to Environment.STAGING as default

Link copied to clipboard
fun withHost(protocol: String?, host: String?): Config.Builder

Ktor url builder must provide a protocol else it defaults to HTTP. Client can only need to send us the url path.

Link copied to clipboard

all our optional values

Link copied to clipboard

set HttpTimeout request Timeout in Millis