getAgent

fun getAgent(serverUrl: String): Agent(source)

Gets an http agent. This function is useful when you need an http agent that handles routing through a proxy server - depending upon the url and proxy environment variables.

Parameters

serverUrl

The server URL where the request will be sent. For example, https://api.github.com