Turq user manual¶
Warning
Turq is no longer maintained nor used by its author. Try mitmproxy with scripting instead. See also https://gist.github.com/vfaronov/3f7848932ed96a264c382902262ce7b3
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.
- User guide
- Examples
- Basics
- “RESTful” routing
- HTML pages
- Request details
- Response headers
- Custom status code and reason
- Redirection
- Authentication
- Body from file
- Inspecting requests
- Forwarding requests
- Cross-origin resource sharing
- Compression
- Random responses
- Response framing
- Streaming responses
- Handling
Expect: 100-continue
- Custom methods
- Switching protocols
- Anything else
- History of changes