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.

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here β†’

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay