https://github.com/nodejs/node/commit/6ec225392675c92b102d3caad02ee3a157c9d1b7 Skip to content Sign up * Why GitHub? + Features + Mobile + Actions + Codespaces + Packages + Security + Code review + Issues + Integrations + GitHub Sponsors + Customer stories * Team * Enterprise * Explore + Explore GitHub + Learn and contribute + Topics + Collections + Trending + Learning Lab + Open source guides + Connect with others + The ReadME Project + Events + Community forum + GitHub Education + GitHub Stars program * Marketplace * Pricing + Plans + Compare plans + Contact Sales + Education [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this organization All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} nodejs / node Public * Notifications * Fork 22.6k * Star 85k * * Code * Issues 1.4k * Pull requests 338 * Discussions * Actions * Projects 5 * Security * Insights More * Code * Issues * Pull requests * Discussions * Actions * Projects * Security * Insights Permalink This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. Browse files lib: add fetch Fixes: #19393 PR-URL: #41749 Refs: nodejs/undici#1183 Reviewed-By: Antoine du Hamel Reviewed-By: Matteo Collina Reviewed-By: Benjamin Gruenbaum Reviewed-By: Geoffrey Booth Reviewed-By: Robert Nagy Reviewed-By: Darshan Sen Reviewed-By: Mestery Reviewed-By: Mohammed Keyvanzadeh Reviewed-By: Gus Caplan Reviewed-By: Trivikram Kamat Reviewed-By: Myles Borins * Loading branch information @targos targos committed Feb 1, 2022 1 parent 7123a00 commit 6ec225392675c92b102d3caad02ee3a157c9d1b7 Split Unified Showing 16 changed files with 8,076 additions and 3 deletions. 1. +4 -0 .eslintrc.js 2. +25 -0 LICENSE 3. +21 -0 deps/undici/LICENSE 4. +7,887 -0 deps/undici/undici.js 5. +10 -0 doc/api/cli.md 6. +46 -0 doc/api/globals.md 7. +3 -0 doc/node.1 8. +22 -0 lib/internal/bootstrap/pre_execution.js 9. +2 -0 lib/internal/main/worker_thread.js 10. +1 -0 node.gyp 11. +4 -0 src/node_options.cc 12. +1 -0 src/node_options.h 13. +12 -3 test/common/index.js 14. +32 -0 test/parallel/test-fetch.mjs 15. +4 -0 tools/doc/type-parser.mjs 16. +2 -0 tools/license-builder.sh There are no files selected for viewing 4 .eslintrc.js [*] Show comments View file Edit file Delete file This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters Show hidden characters @@ -338,5 +338,9 @@ module.exports = { atob: 'readable', performance: 'readable', structuredClone: 'readable', fetch: 'readable', Headers: 'readable', Request: 'readable', Response: 'readable', }, }; 25 LICENSE [*] Show comments View file Edit file Delete file This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters Show hidden characters @@ -634,6 +634,31 @@ The externally maintained libraries used by Node.js are: THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ - undici, located at deps/undici, is licensed as follows: """ MIT License Copyright (c) Matteo Collina and Undici contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/ or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ - OpenSSL, located at deps/openssl, is licensed as follows: """ Apache License 21 deps/undici/LICENSE [*] Show comments View file Edit file Delete file This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters Show hidden characters @@ -0,0 +1,21 @@ MIT License Copyright (c) Matteo Collina and Undici contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/ or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Oops, something went wrong. Retry Toggle all file notes Toggle all file annotations 7 comments on commit 6ec2253 @saoirse-zee This comment has been minimized. Sign in to view Copy link Quote reply @saoirse-zee saoirse-zee replied Feb 1, 2022 @dashdanw This comment has been minimized. Sign in to view Copy link Quote reply @dashdanw dashdanw replied Feb 1, 2022 * edited wooOooOoOooo 16 @nataliescottdavidson This comment has been minimized. Sign in to view Copy link Quote reply @nataliescottdavidson nataliescottdavidson replied Feb 1, 2022 Finally! @jashsayani This comment has been minimized. Sign in to view Copy link Quote reply @jashsayani jashsayani replied Feb 1, 2022 Yay!! Finally! It was about time. @manueltarouca This comment has been minimized. Sign in to view Copy link Quote reply @manueltarouca manueltarouca replied Feb 1, 2022 Will this replace axios? @euvl This comment has been minimized. Sign in to view Copy link Quote reply @euvl euvl replied Feb 1, 2022 Will this replace axios? image 3 @spdebbarma This comment has been minimized. Sign in to view Copy link Quote reply @spdebbarma spdebbarma replied Feb 1, 2022 ah snap, here we go again refactor time Please sign in to comment. * (c) 2022 GitHub, Inc. * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.