- Added support for response types on
Actions
(json
(default),text
,buffer
)
Usage:
// Create an Action for sending an email
const sendMailAction = new Action({
// Define the action name
name: 'sendEmail',
// Define the endpoint
endpoint: `/mail/send`,
// Define the method type
method: 'POST',
// Define the action response type to be text
type: 'text'
});
- Added support for `text` and `buffer` to `Request` (required for response types)