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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Pathod: A pathological HTTP daemon for testing and torturing client software

54 点作者 cesther将近 13 年前

6 条评论

cortesi将近 13 年前
Drat - this story is just a tad premature. A brand new release of pathod will be out next week, including a publicly accessible pathod instance, pathoc (pathod's evil client-side equivalent), and a huge range of other improvements and bugfixes.
评论 #4307170 未加载
cafeconleche将近 13 年前
This is a similar tool as <a href="http://httpbin.org/" rel="nofollow">http://httpbin.org/</a> which was written by Kenneth Reitz to test python request <a href="http://python-requests.org/" rel="nofollow">http://python-requests.org/</a>. I like that this is written in tornado thanks for sharing.
评论 #4307039 未加载
blatherard将近 13 年前
bane is a similar tool that pathod-interested users might be interested in.<p><a href="https://github.com/danielwellman/bane" rel="nofollow">https://github.com/danielwellman/bane</a><p>From the readme: "If you are building an application, you may depend on third-party servers or web services for your data. Most of the time these services are reliable, but at some point they will behave in an unusual manner - such as connecting but never respond, sending data very slowly, or sending an unexpected response. To ensure your application survives these scenarios, you should test your application against these bad behaviors. Bane helps you recreate these scenarios by standing in for your third-party servers and responding in several nefarious ways."
suresk将近 13 年前
Really cool!<p>A year or two ago, I was working on some automated deployment tools that basically called a bunch of Rest APIs. As I discovered how unreliable the API calls could be at times, I ended up writing something kind of similar (although very application-specific to this) to be used as part of my unit tests for it - it helped immensely.<p>One thing that would be nice is if I could pre-define reactions to certain requests - ie, some sort of way to specify that when you get a POST at uri /add with a content-type of application/json, I want a 500 error (or maybe I want a 500 error 5% of the time) - rather than having to specify what I want in the actual request. Is this something your client library will make possible?
评论 #4307445 未加载
enginous将近 13 年前
I like the idea, but does the syntax have to be that terse? It's quite expressive but less readable than code (or JSON/YAML), and I'm not sure why that's useful in this context.
评论 #4308215 未加载
cypherpunks01将近 13 年前
What's the practical usage scenario for this? Would it be only used by http client library developers, or is there a broader audience?
评论 #4306886 未加载
评论 #4306938 未加载