DEV Community

Tim Perry
Tim Perry

Posted on

3 4

Introducing HTTP Mock

Hi Dev.to!

I'm super excited to show you my 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 dramatically 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.

HTTP Mock, showing some intercepted traffic

From there, there's 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:

HTTP Mock, showing some rewrite rules

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

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (2)

Collapse
 
vcharantimath profile image
Veeresh Charantimath

Looks cool, when is the Android one coming out?

Collapse
 
pimterry profile image
Tim Perry

It's definitely on the list! You can follow progress & subscribe for notifications when it's out over here: github.com/httptoolkit/feedback/is...

Image of Datadog

Create and maintain end-to-end frontend tests

Learn best practices on creating frontend tests, testing on-premise apps, integrating tests into your CI/CD pipeline, and using Datadog’s testing tunnel.

Download The Guide

👋 Kindness is contagious

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

Okay