擅长:python、mysql、java
<p><a href="https://pypi.org/project/turq/" rel="nofollow noreferrer">Turq</a>在这种情况下效果很好。它是用Python编写的,使用简单,但又广泛、灵活,甚至有一个GUI。Turq的开发者这样描述它:</p>
<blockquote>
<p>Turq is a small HTTP server that can be scripted in a Python-based
language. Use it to set up mock HTTP resources that respond with the
status, headers, and body of your choosing. Turq is designed for quick
interactive testing, but can be used in automated scenarios as well.</p>
</blockquote>
<p>它还有<a href="https://turq.readthedocs.io/en/stable/" rel="nofollow noreferrer">good documentation</a>。在</p>
<p>注意:虽然Turq非常有用,但是它的作者已经停止了对它的维护,而是建议使用<a href="https://mitmproxy.org" rel="nofollow noreferrer">mitmproxy</a>;mitmproxy也有一个pythonapi。在</p>