close ( )

Close this response

isAsync ( ) { boolean }

sendError ( errorCode: int, message: String)

Send an error-response

Parameters
Name Type Description
errorCode int
message String

setContent ( body: String)

Set the content of the body given a String

Parameters
Name Type Description
body String

setContentType ( contentType: String)

Set the content-type of this response

Parameters
Name Type Description
contentType String

setHeader ( name: String, value: String)

Sets a header for this response

Parameters
Name Type Description
name String
value String

setStatus ( status: int)

Sets the status-code for this response

Parameters
Name Type Description
status int

write ( value: Object)

Write the body of this response given an object

Parameters
Name Type Description
value Object