Skip to content

Release (Minor) - v0.1.8

Latest
Compare
Choose a tag to compare
@danzlarkin danzlarkin released this 30 Aug 15:38
· 3 commits to master since this release
  • 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)