def set_header(self, header_key, header_value):
        if self.driver_name == 'Firefox':
            # See more Options here :
            # https://github.com/SeleniumHQ/selenium/blob/master/javascript/firefox-driver/webdriver.json
            header_key = header_key.lower().replace('-', '')
            self.profile.set_preference('general.%s.override' % header_key, header_value)
        elif self.driver_name == 'PhantomJS':
            # See more Options here :
            # https://github.com/ariya/phantomjs/wiki/API-Reference-WebPage
            self.profile["phantomjs.page.customHeaders.%s" % header_key] = (
                header_value
            )
        else:
            raise HeaderException('Webdriver not supported for now.')

        return self.profile
Set the value of the defined header key.
dataset/ETHPy150Open thylong/cabu/cabu/utils/headers.py/Headers.set_header