onconnect = function(e) { e.ports[0].postMessage({ "headers": %(headers)s }); };