Ejemplo n.º 1
0
 def __init__(self, port, handler=None, bindaddr="", backlog=128):
     HttpRouter.__init__(self)
     self.port = port
     self.handler = handler
     self.bindaddr = bindaddr
     self.backlog = backlog
     self._twisted_listening_port = None
     self.factory = server.Site(_HttpServerResource(self.handle_request))
Ejemplo n.º 2
0
 def __init__(self, port, handler=None, bindaddr="", backlog=128):
     HttpRouter.__init__(self)
     self.port = port
     self.handler = handler
     self.bindaddr = bindaddr
     self.backlog = backlog
     self._twisted_listening_port = None
     self.factory = server.Site(_HttpServerResource(self.handle_request))
Ejemplo n.º 3
0
 def __init__(self, port, ssl_options, handler=None, bindaddr="", backlog=128,
              max_body_str_len=1024 * 1024):
     HttpRouter.__init__(self)
     self.port = port
     self.ssl_options = ssl_options
     self.handler = handler
     self.bindaddr = bindaddr
     self.backlog = backlog
     self._twisted_listening_port = None
     self.factory = server.Site(_HttpServerResource(self.handle_request,
                                                    max_body_str_len))
Ejemplo n.º 4
0
 def __init__(self,
              port,
              ssl_options,
              handler=None,
              bindaddr="",
              backlog=128,
              max_body_str_len=1024 * 1024):
     HttpRouter.__init__(self)
     self.port = port
     self.ssl_options = ssl_options
     self.handler = handler
     self.bindaddr = bindaddr
     self.backlog = backlog
     self._twisted_listening_port = None
     self.factory = server.Site(
         _HttpServerResource(self.handle_request, max_body_str_len))
Ejemplo n.º 5
0
 def __init__(self, port, handler=None):
     HttpRouter.__init__(self)
     self.handler = handler
     self.port = port
Ejemplo n.º 6
0
 def __init__(self, port, handler=None):
     HttpRouter.__init__(self)
     self.handler = handler
     self.port = port