The Swifti response
object is a more simplified version of the original Nodejs response object. Its long-term goal is to provide simple methods for returning responses to the client.
This object extends the Writable class of the stream module.
Method to send a string as a response.
Method to define the status code.
Method to add headers to the response.
Method to send a json as a response.
Mandatory execution method to stop the execution of the program.