Looks like the the stub has a way to pass headers. This does not appear to be documented. Had to do a bit of spelunking in the code.