Code Monkey home page Code Monkey logo

Comments (2)

bendrucker avatar bendrucker commented on June 8, 2024

I like this. I personally use https://github.com/sindresorhus/got quite heavily and it follows redirects. But it's not 100% identical when browserified and I think there's room for a module that is and sits at a lower level.

from follow-redirects.

RubenVerborgh avatar RubenVerborgh commented on June 8, 2024

Issue #12 needs to be fixed.

Done.

Also related to #12, we currently always perform a GET on redirection, even if the original request was a POST or otherwise. This is the correct response in most situations, but (I believe) not all.

Done.

If we encounter a 3XX status code without a Location header, we do not throw an error, but return the result to the registered callback.

This is in accordance with the HTTP spec, so I wouldn't change.

Make all this configurable.

I opted to make the library more simple instead. It only performs redirects, and this behavior can be switched off by setting the followRedirects option to false.

We should do all this while still maintaining API compatibility with the core modules (nodes native http and browserify-http, etc).

Check.

Be as lightweight on the client side as possible.

Check.

from follow-redirects.

Related Issues (20)

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.