GithubHelp home page GithubHelp logo

alanchenchen / httpproxyer Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 1.0 103 KB

A simple http server proxy module implemented with nodejs

License: Other

JavaScript 100.00%
nodejs nodejs-server proxy-server proxy reverse-proxy proxy-cluster file-server static-file-server

httpproxyer's Introduction

🌱 I’m currently learning golang

Anurag's github stats

Top Langs

httpproxyer's People

Contributors

alanchenchen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

leeboya

httpproxyer's Issues

【enhancement】拦截事件可以优化writable stream数据是否被重写的判断逻辑

当前是通过判断拦截事件的字符串来正则匹配write, end,和pipe等方法检测,但是存在很多问题:

  • 使用者注释后,正则还是会匹配,只能通过优化正则规则解决
  • 如果使用者调用了write,但是未使用end,http response流依旧未成功返回

优化如下:

  • 使用stream模块,writable stream的writableFinished属性来判断,当前http response流是否不需要插件手动返回原有的服务器数据

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.