def __init__(self, db_host, db_port, db_name, collection, host, url, method): HTTPHandler.__init__(self, host, url, method) self.db_host = db_host self.db_port = db_port self.db_name = db_name self.collection = collection self.s = requests.Session()
def __init__(self, url, username=None, icon_url=None, icon_emoji=None, channel=None, mention=None): o = urlparse(url) is_secure = o.scheme == 'https' HTTPHandler.__init__(self, o.netloc, o.path, method="POST", secure=is_secure) self.username = username self.icon_url = icon_url self.icon_emoji = icon_emoji self.channel = channel self.mention = mention and mention.lstrip('@')
def __init__(self, logPath, host, url, method, protocol='http'): """ Constructor :param logPath: log path on HTTP server :param host: Host name or IP :param url: URL of web services :param method: HTTP method :param protocol: HTTP or HTTPS """ HTTPHandler.__init__(self, host, url, method) self.logPath = logPath self.session = requests.Session() self.protocol = protocol
def __init__(self, host, database): HTTPHandler.__init__(self, host, database, 'POST') from WMCore.Database.CMSCouch import CouchServer self.database = CouchServer(dburl=host).connectDatabase(database, size=10)
def __init__(self, no_date='false', **kwargs): HTTPHandler.__init__(self, **kwargs) self.no_date = no_date
def __init__(self, log_path, host, url, method, day=None): HTTPHandler.__init__(self, host, url, method) self.logPath = log_path self.day = day self.s = requests.Session()
def __init__(self, logPath, host, url, method): HTTPHandler.__init__(self, host, url, method) self.logPath = logPath self.s = requests.Session()
def __init__(self, filename, host, url, method): HTTPHandler.__init__(self, host, url, method) self.logPath = filename self.session = requests.Session()