Home

com.hexagonkt.http.server / Call

Call

class Call

HTTP request context. It holds client supplied data and methods to change the response.

Constructors

Name Summary
<init> Call(request:Request, response:Response, session:Session)
HTTP request context. It holds client supplied data and methods to change the response.

Properties

Name Summary
attributes val attributes:MutableMap<String,Any>
Call attributes (for the current request). Same as HttpServletRequest.setAttribute().
formParameters val formParameters:Map<String,List<String>>
parameters val parameters:Map<String,List<String>>
pathParameters val pathParameters: RequiredKeysMap<String,String>
queryParameters val queryParameters:Map<String,List<String>>
request val request:Request
requestFormat val requestFormat: SerializationFormat
requestType val requestType:String
response val response:Response
responseFormat val responseFormat: SerializationFormat
responseType val responseType:String
session val session:Session

Functions

Name Summary
halt fun halt(content:Any):Nothing
fun halt(code:Int= 500, content:Any= ""):Nothing
ok fun ok(content:Any= "", contentType:String? = null):Unit
fun ok(content:Any, serializationFormat: SerializationFormat = responseFormat, charset:Charset? = null):Unit
redirect fun redirect(url:String):Unit
send fun send(code:Int, content:Any= "", contentType:String? = null):Unit
fun send(code:Int, content:Any, serializationFormat: SerializationFormat, charset:Charset?):Unit
fun send(code:Int, content:Any, contentType: ContentType):Unit