ktor-server-core / io.ktor.response / header

header

fun ApplicationResponse.header(name: String, value: String): Unit

Append HTTP response header with string value

fun ApplicationResponse.header(name: String, value: Int): Unit

Append HTTP response header with integer numeric value

fun ApplicationResponse.header(name: String, value: Long): Unit

Append HTTP response header with long integer numeric value

fun ApplicationResponse.header(name: String, date: Temporal): Unit

Append HTTP response header with temporal date (date, time and so on)