send
A basic response function for sending basic html/text content back to the caller
The send
method is a curried method meaning it doesn't need to be provided all parameters at once
Arguments
Name
Type
Description
code
Number
The status code for the response
data
Any
The data to send back to the requester
You must supply both arguments at some point within your handler or the function will throw an error on request
Usage
You would use the response functions within your method handlers you can read about the methods here
Last updated