GoblinClient

open class GoblinClient(val server: String, val timeout: Long = 5)

HTTP(S) client implementation.

Constructors

Link copied to clipboard
constructor(server: String, timeout: Long = 5)

Properties

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>