Turq
stable
  • User guide
  • Examples
  • History of changes
Turq
  • Docs »
  • Turq user manual
  • Edit on GitHub

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
    • Quick start
    • Programmatic use
    • Using mitmproxy with Turq
    • Known issues
  • 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
    • 0.3.1 - 2017-04-04
    • 0.3.0 - 2017-04-04
    • 0.2.0 - 2012-12-09
    • 0.1.0 - 2012-11-17
Next

© Copyright 2017, Vasiliy Faronov Revision 1f5e9742.

Built with Sphinx using a theme provided by Read the Docs.