HttpServerResponse

data class HttpServerResponse(    val body: Any = "",     val headers: HttpFields<Header> = HttpFields(),     val contentType: ContentType? = null,     val cookies: List<HttpCookie> = emptyList(),     val status: HttpStatus = NOT_FOUND) : HttpResponse

Constructors

Link copied to clipboard
fun HttpServerResponse(    body: Any = "",     headers: HttpFields<Header> = HttpFields(),     contentType: ContentType? = null,     cookies: List<HttpCookie> = emptyList(),     status: HttpStatus = NOT_FOUND)

Functions

Link copied to clipboard
open fun bodyString(): String
Link copied to clipboard
open fun cookiesMap(): Map<String, HttpCookie>

Properties

Link copied to clipboard
open override val body: Any
Link copied to clipboard
open override val contentType: ContentType? = null
Link copied to clipboard
open override val cookies: List<HttpCookie>
Link copied to clipboard
open override val headers: HttpFields<Header>
Link copied to clipboard
open override val status: HttpStatus