Skip to content

Commit

Permalink
http: support http proxy for fetch under NODE_USE_ENV_PROXY
Browse files Browse the repository at this point in the history
  • Loading branch information
joyeecheung committed Feb 21, 2025
1 parent 06d5701 commit 44298c9
Show file tree
Hide file tree
Showing 6 changed files with 1,338 additions and 4 deletions.
4 changes: 4 additions & 0 deletions deps/undici/src/index-fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ module.exports.createFastMessageEvent = createFastMessageEvent

module.exports.EventSource = require('./lib/web/eventsource/eventsource').EventSource

const api = require('./lib/api')
const Dispatcher = require('./lib/dispatcher/dispatcher')
Object.assign(Dispatcher.prototype, api)

// Expose the fetch implementation to be enabled in Node.js core via a flag
module.exports.EnvHttpProxyAgent = EnvHttpProxyAgent
module.exports.getGlobalDispatcher = getGlobalDispatcher
Expand Down
Loading

0 comments on commit 44298c9

Please sign in to comment.