[web] Allow modules to control the headers sent with HTTP requests