root
Toggle table of contents
goblin-common
Target filter
goblin-common
Switch theme
Search in API
Skip to content
root
root
/
fi.utu.tech.powergoblin.common.utils
/
GoblinClient
Goblin
Client
goblin-common
open
class
GoblinClient
(
val
server
:
String
,
val
timeout
:
Long
=
5
)
HTTP(S) client implementation.
Members
Constructors
Goblin
Client
Link copied to clipboard
goblin-common
constructor
(
server
:
String
,
timeout
:
Long
=
5
)
Properties
server
Link copied to clipboard
goblin-common
val
server
:
String
timeout
Link copied to clipboard
goblin-common
val
timeout
:
Long
=
5
Functions
get
Link copied to clipboard
goblin-common
fun
get
(
api
:
String
,
callTimeout
:
Long
?
=
null
)
:
HttpResponse
<
ByteArray
>
post
Link copied to clipboard
goblin-common
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
>