ktor
1.6.8
3.0.0
3.0.0-rc-1
3.0.0-beta-2
3.0.0-beta-1
2.3.12
2.2.4
2.0.3
1.6.8
ktor-server-core
/
io.ktor.response
/
respond
respond
@
JvmName
(
name
=
"respondWithType"
)
inline suspend
fun
<
T
:
Any
>
ApplicationCall
.
respond
(
message
:
T
)
Content copied to clipboard
inline suspend
fun
ApplicationCall
.
respond
(
message
:
Any
)
Content copied to clipboard
Sends a
message
as a response
@
JvmName
(
name
=
"respondWithType"
)
inline suspend
fun
<
T
:
Any
>
ApplicationCall
.
respond
(
status
:
HttpStatusCode
,
message
:
T
)
Content copied to clipboard
inline suspend
fun
ApplicationCall
.
respond
(
status
:
HttpStatusCode
,
message
:
Any
)
Content copied to clipboard
Sets
status
and sends a
message
as a response