Turq user manual¶
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