Home

port_http_server / 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.

Types

Name Summary
MapInterface interface MapInterface<K, V>

Constructors

Name Summary
<init> 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.Response()

Properties

Name Summary
body var body:Any
contentType var contentType:String?
headers val headers: MapInterface<String,Any>
headersValues val headersValues: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
status abstract fun status():Int
abstract fun status(value:Int):Unit