Interface: RoboReply
Properties
code()
code: (statusCode) => RoboReply;
Parameters
Parameter | Type |
---|---|
statusCode | number |
Returns
hasSent
hasSent: boolean;
header()
header: (name, value) => RoboReply;
Parameters
Parameter | Type |
---|---|
name | string |
value | string |
Returns
json()
json: (data) => RoboReply;
Parameters
Parameter | Type |
---|---|
data | unknown |
Returns
raw
raw: ServerResponse;
send()
send: (response) => RoboReply;
Parameters
Parameter | Type |
---|---|
response | Response | BodyInit |