ktor
1.6.7
2.2.4
2.2.3
2.2.2
2.2.1
2.2.0
2.0.3
2.0.2
2.0.1
2.0.0
2.0.0-rc-1
2.0.0-beta-1
1.6.8
1.6.7
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