示例#1
0
 def addHendrix(self):
     "instantiates the HendrixService"
     self.hendrix = HendrixService(self.application,
                                   self.options['http_port'],
                                   resources=self.resources,
                                   services=self.services,
                                   loud=self.options['loud'])
示例#2
0
文件: base.py 项目: ichem/hendrix
 def addHendrix(self):
     '''
     Instantiates a HendrixService with this object's threadpool.
     It will be added as a service later.
     '''
     self.hendrix = HendrixService(self.application,
                                   port=self.options['http_port'],
                                   threadpool=self.getThreadPool(),
                                   resources=self.resources,
                                   services=self.services,
                                   loud=self.options['loud'])
示例#3
0
 def addHendrix(self):
     '''
     Instantiates a HendrixService with this object's threadpool.
     It will be added as a service later.
     '''
     self.hendrix = HendrixService(self.application,
                                   threadpool=self.getThreadPool(),
                                   resources=self.resources,
                                   services=self.services,
                                   loud=self.options['loud'])
     if self.options["https_only"] is not True:
         self.hendrix.spawn_new_server(self.options['http_port'],
                                       HendrixTCPService)