Twisted
23.10
  • Installing Twisted
  • Twisted Core
  • Twisted Conch (SSH and Telnet)
  • Twisted Mail (SMTP, POP, and IMAP)
  • Twisted Names (DNS)
  • Twisted Pair
  • Twisted Web
    • Developer Guides
      • Overview of Twisted Web
      • Configuring and Using the Twisted Web Server
      • Web Application Development
      • HTML Templating with twisted.web.template
      • Creating XML-RPC Servers and Clients with Twisted
      • Twisted Web In 60 Seconds
        • Serving Static Content From a Directory
        • Generating a Page Dynamically
        • Static URL Dispatch
        • Dynamic URL Dispatch
        • Error Handling
        • Custom Response Codes
        • Handling POSTs
        • Other Request Bodies
        • rpy scripts (or, how to save yourself some typing)
        • Asynchronous Responses
        • Asynchronous Responses (via Deferred)
        • Interrupted Responses
        • Logging Errors
        • Access Logging
        • WSGI
        • HTTP Authentication
        • Session Basics
        • Storing Objects in the Session
        • Session Endings
      • Light Weight Templating With Resource Templates
      • Using the Twisted Web Client
      • Glossary
    • Examples
  • Twisted Words (IRC and XMPP)
  • API Reference
  • Development of Twisted

Quick links

  • Report a security issue
  • Security Procedure for Developers
  • Security Audit
  • Twisted Community
  • API Reference
  • GitHub
  • PyPI
Twisted
  • Twisted Web
  • Developer Guides
  • Twisted Web In 60 Seconds
  • View page source

Twisted Web In 60 SecondsΒΆ

This set of examples contains short, complete applications of twisted.web. For subjects not covered here, see the Twisted Web tutorial and the API documentation.

  1. Serving static content from a directory

  2. Generating a page dynamically

  3. Static URL dispatch

  4. Dynamic URL dispatch

  5. Error handling

  6. Custom response codes

  7. Handling POSTs

  8. Other request bodies

  9. rpy scripts (or, how to save yourself some typing)

  10. Asynchronous responses

  11. Asynchronous responses (via Deferred)

  12. Interrupted responses

  13. Logging errors

  14. Access logging

  15. WSGIs

  16. HTTP authentication

  17. Session basics

  18. Storing objects in the session

  19. Session endings

Previous Next

© Copyright 2023, Twisted Matrix Labs. Ver 23.10.0. Built on 2023-12-19.

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