TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

1 点作者 sharat874 个月前

1 comment

sharat874 个月前
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>.