Skip to content

Home

com.hexagonkt.http.server / Response

Response

abstract class Response

Check 'Request' comment. And also note that lists should be updated by engines after callback is processed, this data is like a buffer that needs to be dumped to the real response.

HTTP response context.

Constructors

Name Summary
<init> Response()
Check 'Request' comment. And also note that lists should be updated by engines after callback is processed, this data is like a buffer that needs to be dumped to the real response.

Properties

Name Summary
body var body:Any
contentType var contentType:String?
headers val headers:MutableMap<String,List<Any>>
outputStream val outputStream:OutputStream
status var status:Int

Functions

Name Summary
addCookie abstract fun addCookie(cookie:HttpCookie):Unit
body abstract fun body():Any
abstract fun body(value:Any):Unit
contentType abstract fun contentType():String?
abstract fun contentType(value:String?):Unit
outputStream abstract fun outputStream():OutputStream
redirect abstract fun redirect(url:String):Unit
removeCookie abstract fun removeCookie(name:String):Unit
setHeader fun setHeader(name:String, value:Any?):Unit
status abstract fun status():Int
abstract fun status(value:Int):Unit