ktor
1.6.x
Select version
3.3.x
3.2.x
3.1.x
3.0.x
2.3.x
2.2.x
2.0.x
1.6.x
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