DEV Community

Ethern Myth
Ethern Myth

Posted on

Time to intercept...

Why say Time to intercept?

This good time to let MR.HTTP to be intercepted. But why and how, with what?

Let's break this down like a plan to rob a bank rather borrow the bank, we'll return the 💰 once we are pleased 🤣.

The Why:

An intercept is required or necessary to get us our money, but the only way to do so requires someone from the team to make our key victim to be intercepted. The victim being the bank manager (API endpoint). The receiver of all the good things.

The How:

We can buy our bank manager (API endpoint) with a delay 🎂. The cake is the interceptor, we magically add some sleep to it then the rest is a dream. What all this mean is our package called em-interceptor.

The What:

Once we have our master sleep, the rest is to let DR.🎂 to work the best out to get us codes, do some appends and return the potion for master sleep to wake up. That is it. We just got helped by the bank manager to borrow 💰. Once we outside, we'll send a good call.

The With:

Check out the newest but always used transaction. HTTP Interceptor em-interceptor, well this one uses axios. By default, it was supposed to hack any http client to intercept and add bearer token on the header. Not a good way to approach but then saw axios is used on most basis and why not just add some recipe.

Break a leg not the bones. Keep breathing but suffocating.
Don't forget to do the basics.

🎈 again next time.

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

Top comments (0)

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay