ESCLRequestClient

constructor(baseUrl: Url, usedHttpClient: HttpClient = HttpClient { install(HttpTimeout) { requestTimeoutMillis = 100_000 connectTimeoutMillis = 100_000 socketTimeoutMillis = 100_000 } })

Parameters

baseUrl

The base url to make requests to. Has to be a URL which is derived with "http URL to printer" + "rs" txt record acquired from mDNS

usedHttpClient

eSCL is an HTTP-based protocol. This OkHttpClient will be used to execute requests