# Glossary

Note: This glossary is very incomplete. Contributions are welcome.

resource
  An object accessible via HTTP at one or more URIs. In Twisted Web, a resource is represented by an object which provides `twisted.web.resource.IResource` and most often is a subclass of `twisted.web.resource.Resource`. For example, here is a resource which represents a simple HTML greeting.

      1
      2
      3
      4
      5
      from twisted.web.resource import Resource

      class Greeting(Resource):
          def render_GET(self, request):
              return "Hello, world."

Index

Version: 13.0.0