rob05c opened a new issue #2204: Document plugin using both global and local 
config data
URL: https://github.com/apache/incubator-trafficcontrol/issues/2204
 
 
   Currently, the plugin system works like other remap config fields, the 
config for a rule is used if it exists, or from the outside object if not.
   
   Plugins should be changed to be passed both.
   
   While most plugins probably want to work the same way rules work, for some 
plugins it may make sense to apply both, or even to prioritize the global.
   
   An example of this is ModHeaders. The header modification plugins should 
apply both, so it's possible to specify headers to be added to all remaps, as 
well as headers only added to specific remaps, without the specific having to 
duplicate the global. This is the reason a duplicate modify_headers_global 
plugin exists, and fixing this will obviate the need for that.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to