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 |