Coder Social home page Coder Social logo

Comments (4)

CodingAleCR avatar CodingAleCR commented on June 15, 2024 1

Yeah, that sounds like a good idea, I'll add it as a feature for release 1.0.0 hopefully coming soon.

from http_interceptor.

CodingAleCR avatar CodingAleCR commented on June 15, 2024

Hey, sure, that's a possibility. Although if you don't mind me asking which would be a case in which you'd need it. When I did that I just thought that it'd be good to have them apply changes in the order that they were added.

from http_interceptor.

ezzabuzaid avatar ezzabuzaid commented on June 15, 2024

Hi, Angular does that with the interceptors, and I liked much, the first case is the logging, when I want to log the time needed for the request to finish, and there's a variety of cases may you want

I think it can be an option, reverse or not, and believe me it's useful.

and I was thinking about some useful changes

  • modify the request object to have a data or config, whatever prop that will be used to transfer data from one interceptor to another, a use case for that when I want to use a default URL or not, so I can modify my request according to that without the needs to create a new HTTP instance and make it bypasses the interceptors, this is one and there are other use cases.

  • decode the body without the need to do it every time when in each request

and I want to thank you for that effort.

from http_interceptor.

CodingAleCR avatar CodingAleCR commented on June 15, 2024

As I'm planning to separate into different contracts the request and response interceptors then I won't be adding the reverse order flag for now.

from http_interceptor.

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.