Some tests want to set some custom HTTP request headers, so provide a way to do that before calling requestReceived().