NavyKit uses WEBrick's Response Object and extracts it.

Headers

To set a header, use the header method.

res.header("Content-Type", "text/plain")

If you want to set the content type, use the shortcut method type.

res.type("text/plain")

Sending a response

To send a response, use the send method. Provide the status code and the response text.

res.send(200, "Success")