AlaK4X
Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64



Your IP : 3.140.188.174


Current Path : /lib/python3/dist-packages/twisted/web/
Upload File :
Current File : //lib/python3/dist-packages/twisted/web/demo.py

# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.

"""
I am a simple test resource.
"""


from twisted.web import static


class Test(static.Data):
    isLeaf = True

    def __init__(self):
        static.Data.__init__(
            self,
            b"""
            <html>
            <head><title>Twisted Web Demo</title><head>
            <body>
            Hello! This is a Twisted Web test page.
            </body>
            </html>
            """,
            "text/html",
        )