TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Httpbun Mixer – build simple test/mock APIs for testing HTTP clients

1 pointsby sharat874 months ago

1 comment

sharat874 months ago
Httpbun is an HTTP server similar to httpbin.org, but has a few more bells. One of them is the `&#x2F;mix` endpoint, and the Mixer tool.<p>With httpbin, we can&#x27;t have an endpoint that responds with, say, 400 status code, _and_ an HTML body with a script injection, for when I need to test any HTTP client. This is possible with `&#x2F;mix`. Here&#x27;s the Mixer URL for such an endpoint: <a href="https:&#x2F;&#x2F;httpbun.com&#x2F;mixer&#x2F;s=400&#x2F;b64=PHNjcmlwdD5hbGVydCgiaW5qZWN0ZWQiKTwvc2NyaXB0" rel="nofollow">https:&#x2F;&#x2F;httpbun.com&#x2F;mixer&#x2F;s=400&#x2F;b64=PHNjcmlwdD5hbGVydCgiaW5q...</a>.