Package io.ktor.response
Types
interface ApplicationResponse Represents server’s response |
|
open class ApplicationSendPipeline : Server response send pipeline |
|
class DefaultResponsePushBuilder : ResponsePushBuilder HTTP/2 push builder |
|
class ResponseCookies Server’s response cookies |
|
abstract class ResponseHeaders Server’s response headers |
|
interface ResponsePushBuilder HTTP/2 push builder interface |
Functions
fun ApplicationResponse.cacheControl( Append response fun HeadersBuilder.cacheControl(value: CacheControl): Unit Append |
|
fun HeadersBuilder.contentRange( Append ‘Content-Range` header with specified range and fullLength fun ApplicationResponse.contentRange( fun ApplicationResponse.contentRange( Append response |
|
fun ApplicationCall.defaultTextContentType( Creates a default ContentType based on the given contentType and current call |
|
fun ApplicationResponse.etag(value: String): Unit Append response |
|
fun ApplicationResponse.expires(value: LocalDateTime): Unit Append response |
|
fun ApplicationResponse.header( Append HTTP response header with string value fun ApplicationResponse.header( Append HTTP response header with integer numeric value fun ApplicationResponse.header( Append HTTP response header with long integer numeric value fun ApplicationResponse.header( Append HTTP response header with temporal date (date, time and so on) |
|
fun ApplicationResponse.lastModified( Append response |
|
suspend fun ApplicationCall.respond(message: Any): Unit Sends a message as a response suspend fun ApplicationCall.respond( |
|
suspend fun ApplicationCall.respondBytes( Responds to a client with a raw bytes response, using specified provider to build a byte array suspend fun ApplicationCall.respondBytes( Responds to a client with a raw bytes response, using specified bytes |
|
suspend fun ApplicationCall.respondFile( Responds to a client with a contents of a file with the name fileName in the baseDir folder suspend fun ApplicationCall.respondFile( Responds to a client with a contents of a file |
|
suspend fun ApplicationCall.respondOutputStream( Respond with binary content producer. |
|
suspend fun ApplicationCall.respondRedirect( Responds to a client with a suspend fun ApplicationCall.respondRedirect( Responds to a client with a |
|
suspend fun ApplicationCall.respondText( Responds to a client with a plain text response, using specified text suspend fun ApplicationCall.respondText( Responds to a client with a plain text response, using specified provider to build a text |
|
suspend fun ApplicationCall.respondTextWriter( Respond with text content writer. |