My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Intercept, debug & mock HTTP(S) with zero setup

Tim Perry's photo
Tim Perry
·Oct 3, 2019

Hi Hashnode,

I've just launched the latest HTTP Toolkit release: HTTP Mock.

It's an HTTP debugging, testing & development tool, similar to others like Fiddler & Charles, but cross-platform, 100% open-source, and thoroughly modernized.

The best bit of magic: one click setup. Click a button, and open a Chrome or Firefox window, or a command line, and start seeing all HTTP or HTTPS sent by that specific window. Open pages in your browser, run CLI tools, start up your Node.js server, Python script or Ruby app, and you'll immediately see all the HTTP & HTTPS they're sending.

Super useful for complex microservice debugging, but also if you're just trying to understand how some simple communication in your codebase actually works. I've added inline docs from the Mozilla Developer Network too for all standard methods, statuses and headers, which helps make everything easier to understand.

inspect-screenshot.png

From there, there's now a new 'Mock' tab, which lets you mock & rewrite HTTP.

You can match requests & breakpoint them to take a closer look, and edit the request or response, or provide your own response directly. You can match requests and provide automated responses, to mock endpoints or entire servers, or inject error responses, timeouts & connection resets to test your error handling.

Even forward traffic from one host to another, to replace your production database with a local one, or anything else you can imagine.

Like so:

edit-screenshot.png

Sound good? It's a free download from httptoolkit.tech/mock. Try it out, let me know what you think!