Skip to content

Conversation

kobenguyent
Copy link
Collaborator

Motivation/Description of the PR

  • Support the httpAgent conf to create the TSL connection via REST helper
{
  helpers: {
    REST: {
      endpoint: 'http://site.com/api',
      prettyPrintJson: true,
      httpAgent: {
         key: fs.readFileSync(__dirname + '/path/to/keyfile.key'),
         cert: fs.readFileSync(__dirname + '/path/to/certfile.cert'),
         rejectUnauthorized: false,
         keepAlive: true
      }
    }
  }
}

Applicable helpers:

  • REST

Type of change

  • 🚀 New functionality

Checklist:

  • Tests have been added
  • Documentation has been added (Run npm run docs)
  • Lint checking (Run npm run lint)
  • Local tests are passed (Run npm test)

@kobenguyent kobenguyent requested a review from DavertMik April 29, 2024 13:05
@kobenguyent kobenguyent merged commit defee8e into 3.x May 2, 2024
@kobenguyent kobenguyent deleted the feat/REST-https-agent branch May 2, 2024 08:25
@kobenguyent kobenguyent mentioned this pull request May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant