kobweb
Toggle table of contents
0.24.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
kobweb
kobweb-api
/
com.varabyte.kobweb.api.http
/
Body
/
Companion
Companion
object
Companion
(
source
)
Members
Members & Extensions
Functions
bytes
Link copied to clipboard
fun
Body.Companion
.
bytes
(
bytes
:
ByteArray
,
contentType
:
String
=
"application/octet-stream"
)
:
Body
invoke
Link copied to clipboard
operator
fun
invoke
(
contentType
:
String
,
contentLength
:
Long
?
=
null
,
provideContent
:
suspend
(
)
->
ByteSource
)
:
Body
json
Link copied to clipboard
fun
Body.Companion
.
json
(
text
:
String
,
contentType
:
String
=
"application/json"
)
:
Body
multipart
Link copied to clipboard
fun
multipart
(
contentType
:
String
,
contentLength
:
Long
?
=
null
,
provideMultipart
:
suspend
(
)
->
Multipart
)
:
Body
stream
Link copied to clipboard
fun
Body.Companion
.
stream
(
inputStream
:
InputStream
,
contentType
:
String
=
"application/octet-stream"
)
:
Body
text
Link copied to clipboard
fun
Body.Companion
.
text
(
text
:
String
,
charset
:
Charset
=
Charsets.UTF_8
,
contentType
:
String
=
"text/plain; charset="
)
:
Body