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