withHost

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.

Parameters

host

the url host without a /

protocol

the url protocol. if empty it will default to HTTPS. all caps or small does not have any effect. if pass illegal protocol the API will fail. check URLProtocol for supported protocols and proper namings.