GoblinClient

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

Network client implementation. Routines for

  • HTTP GET requests

  • HTTP POST requests

  • Telnet msg requests

Note: For telnet connections, use 127.0.0.1 instead of localhost! Otherwise, you might receive error code -101.

Inheritors

ProxyClient

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>