ProxyClient

open class ProxyClient(val server: String, val timeout: Long = 5, dropCount: Int, val hopByHopHeaders: Set<String> = setOf( "connection", "keep-alive", "proxy-authenticate", "proxy-authorization", "te", "trailers", "transfer-encoding", "upgrade", "content-length", //"content-encoding" ), val debugMode: Boolean = false) : HTTPClient

Constructors

Link copied to clipboard
constructor(server: String, timeout: Long = 5, dropCount: Int, hopByHopHeaders: Set<String> = setOf( "connection", "keep-alive", "proxy-authenticate", "proxy-authorization", "te", "trailers", "transfer-encoding", "upgrade", "content-length", //"content-encoding" ), debugMode: Boolean = false)

Properties

Link copied to clipboard
val debugMode: Boolean = false
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val timeout: Long = 5

Functions

Link copied to clipboard
fun get(api: String, callTimeout: Long? = null): HttpResponse<ByteArray>
Link copied to clipboard
fun post(api: String, callTimeout: Long? = null, file: Path): HttpResponse<ByteArray>
fun post(api: String, callTimeout: Long? = null, obj: Supplier<InputStream>): HttpResponse<ByteArray>
fun post(api: String, callTimeout: Long? = null, text: String): HttpResponse<ByteArray>
Link copied to clipboard
fun proxyDelete(ctx: <Error class: unknown class>, callTimeout: Long = timeout)
Link copied to clipboard
fun proxyGet(ctx: <Error class: unknown class>, callTimeout: Long = timeout)
Link copied to clipboard
fun proxyHead(ctx: <Error class: unknown class>, callTimeout: Long = timeout)
Link copied to clipboard
fun proxyPatch(ctx: <Error class: unknown class>, callTimeout: Long = timeout)
Link copied to clipboard
fun proxyPost(ctx: <Error class: unknown class>, callTimeout: Long = timeout)
Link copied to clipboard
fun proxyPut(ctx: <Error class: unknown class>, callTimeout: Long = timeout)