Skip to main content

Interface: RoboReply

Properties

code()

code: (statusCode) => RoboReply;

Parameters

ParameterType
statusCodenumber

Returns

RoboReply


hasSent

hasSent: boolean;

header: (name, value) => RoboReply;

Parameters

ParameterType
namestring
valuestring

Returns

RoboReply


json()

json: (data) => RoboReply;

Parameters

ParameterType
dataunknown

Returns

RoboReply


raw

raw: ServerResponse;

send()

send: (response) => RoboReply;

Parameters

ParameterType
responseResponse | BodyInit

Returns

RoboReply

Robo.js Logo

MIT © 2024 Robo.js By WavePlay