#NEWLINE# def _set_http_header( self , ssl_vhost , header_substring ) : #NEWLINE# #INDENT# "Enables header that is identified by header_substring on ssl_vhost.\n\n        If the header identified by header_substring is not already set,\n        a new Header directive is placed in ssl_vhost's configuration with\n        arguments from: constants.HTTP_HEADER[header_substring]\n\n        .. note:: This function saves the configuration\n\n        :param ssl_vhost: Destination of traffic, an ssl enabled vhost\n        :type ssl_vhost: :class:`~certbot_apache.obj.VirtualHost`\n\n        :param header_substring: string that uniquely identifies a header.\n                e.g: Strict-Transport-Security, Upgrade-Insecure-Requests.\n        :type str\n\n        :returns: Success, general_vhost (HTTP vhost)\n        :rtype: (bool, :class:`~certbot_apache.obj.VirtualHost`)\n\n        :raises .errors.PluginError: If no viable HTTP host can be created or\n            set with header header_substring.\n\n        " #NEWLINE# if ( 'headers_module' not in self . parser . modules ) : #NEWLINE# #INDENT# self . enable_mod ( 'headers' ) #NEWLINE# #UNINDENT# self . _verify_no_matching_http_header ( self , header_substring ) #NEWLINE# self . parser . add_dir ( ssl_vhost . path , 'Header' , constants . HEADER_ARGS [ header_substring ] ) #NEWLINE# self . save_notes += ( 'Adding %s header to ssl vhost in %s\n' % ( header_substring , ssl_vhost . filep ) ) #NEWLINE# self . save ( ) #NEWLINE# logger . info ( 'Adding %s header to ssl vhost in %s' , header_substring , ssl_vhost . filep )