GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — proxy support improvements · Issue #107 · unjs/node-fetch-native

proxy support improvements #107

New issue
Copy link
New issue
Copy link
Closed
Closed
proxy support improvements#107
Copy link
Labels
enhancementNew feature or request

Description

@pi0
pi0
opened on Dec 23, 2023
Issue body actions

Docs

Nice article: https://about.gitlab.com/blog/2021/01/27/we-need-to-talk-no-proxy/

### Tasks
- [x] Initial support (#106)
- [x] preconfigured `fetch` export from `/proxy` (#108)
- [x] Support `NO_PROXY` environment variable (#109)
- [ ] ~~Reduce bundle size by removing HTTP parser wasm~~
Reacted by Daniel Roe and Paweł Idczak

Activity

  1. pi0
    added
    enhancementNew feature or request
    on Dec 23, 2023
  2. pi0 commented on Dec 23, 2023

    @pi0
    pi0
    on Dec 23, 2023
    MemberAuthor
    More actions

    /cc @TooTallNate I hope you find this attempt in a good direction. If you have any suggestions to improve it is more than welcome ❤️ (I plan to use this opt-in feature in couple of packages like giget and ofetch)

  3. CS-JJ commented on Apr 15, 2024

    @CS-JJ
    CS-JJ
    on Apr 15, 2024
    More actions

    the bypassProxy implementation doesn't check for port specification. Currently there is a workaround by just specifying the port in the no_proxy host declaration.

    Can be checked using the following

    if (_host === host.split(":").at(0) || (_host[0] === "." && host.endsWith(_host.slice(1)))) {
    

    Or if you want to save CPU cycles just over write the host parameter

    host = host.split(':').at(0);
    
  4. pi0
    closed this as completedon Apr 16, 2024
  5. pi0 commented on Apr 16, 2024

    @pi0
    pi0
    on Apr 16, 2024
    MemberAuthor
    More actions

    @CS-JJ Would you please make a new issue with proper reproduction? 🙏🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.