def create_win_request(self, req_line, headers, body): ''' Creates a win request and returns the buffer to be sent by the connection ''' logging.debug('create_win_request') req = RTBRequest(self.template, req_line, headers, body) return req.build()
def create_request(self, set_aid=True): ''' Create a request and call the parameter plugin ''' logging.debug('create_request') aid = None req_line = '' headers = {} body = '' if self.plugin_instance: req_line, headers, body = \ self.plugin_instance.get_request() req = RTBRequest(self.template, req_line, headers, body) return req.build()
def create_request(self, set_aid=True): ''' Create a request and call the parameter plugin ''' logging.debug('create_request') aid = None req_line = '' headers = {} body = '' if self.plugin_instance : req_line, headers, body = \ self.plugin_instance.get_request() req = RTBRequest(self.template, req_line, headers, body) return req.build()