[Twisted-web] HTTPS in Twisted

Evandro Dugnani edugnani at gmail.com
Fri Feb 8 14:37:25 EST 2008

Hi there,

  I've implemented a simple HTTP server using Twisted just to change
data between browser and this server.
  My class is declared:

from twisted.web import http

class MyRequestHandler(http.Request):

    def process(self):
        ... my processing code

class MyHttp(http.HTTPChannel):

    requestFactory = MyRequestHandler

class MyHttpFactory(http.HTTPFactory):

    protocol = MyHttp

  Everything works fine.
  But know, I want to transform that in HTTPS. I just want to respond
browser requests if it access by "https://"
  And I don't know how to do that. I didn't find any previous post
concerning this subject.
  Anyone can help me?

  Thanks in advance.



More information about the Twisted-web mailing list