Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Rest): expose https.Agent options #6177

Merged
merged 5 commits into from Aug 17, 2021
Merged

feat(Rest): expose https.Agent options #6177

merged 5 commits into from Aug 17, 2021

Conversation

memikri
Copy link
Contributor

@memikri memikri commented Jul 23, 2021

Please describe the changes this PR makes and why it should be merged:
This exposes the https.Agent options object for APIRequest as a client option (HTTPOptions#agent?: https.AgentOptions). I am currently working on mock integration testing for discord.js applications, involving a mock REST API and gateway, but to work with a local server and x509 certificates, it is necessary to change some agent options (rejectUnauthorized: false).

Status and versioning classification:

  • Code changes have been tested against the Discord API, or there are no code changes
  • I know how to update typings and have done so, or typings don't need updating
  • This PR changes the library's interface (methods or parameters added)

Copy link
Member

@vladfrangu vladfrangu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nit, otherwise LGTM

typings/index.d.ts Outdated Show resolved Hide resolved
src/util/Options.js Show resolved Hide resolved
@iCrawl iCrawl requested a review from kyranet July 24, 2021 00:04
@iCrawl iCrawl added this to the Version 13 milestone Jul 24, 2021
@iCrawl iCrawl removed this from the Version 13 milestone Aug 4, 2021
@kyranet
Copy link
Member

kyranet commented Aug 12, 2021

This PR has requested changes from 20 days ago, please resolve them at your earliest convenience @shinotheshino

@iCrawl iCrawl dismissed stale reviews from SpaceEEC and vladfrangu August 14, 2021 02:49

Stale

src/rest/APIRequest.js Outdated Show resolved Hide resolved
Co-authored-by: Antonio Román <kyradiscord@gmail.com>
@memikri memikri requested a review from kyranet August 14, 2021 17:41
@iCrawl iCrawl added this to the Version 13.2 milestone Aug 16, 2021
@iCrawl iCrawl merged commit 5eb3553 into discordjs:main Aug 17, 2021
@memikri memikri deleted the feat/https-agent-options branch August 17, 2021 20:56
ckohen added a commit to ckohen/discord.js-modules that referenced this pull request Nov 14, 2021
Ported from discordjs/discord.js#6177

Co-authored-by: Shino <shinotheshino@gmail.com>
Co-authored-by: Antonio Román <kyradiscord@gmail.com>
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.

None yet

5 participants