Search completed in 3.38 seconds.
1 results for "onBeforeSendHeaders":
WebRequest.jsm
MozillaJavaScript code modulesWebRequest.jsm
usage to import webrequest, use code like: let {webrequest} = cu.import("resource://gre/modules/webrequest.jsm", {}); the webrequest object has the following properties, each of which corresponds to a specific stage in executing a web request: onbeforerequest onbeforesendheaders onsendheaders onheadersreceived onresponsestarted oncompleted each of these objects defines two functions: addlistener(callback, filter, opt_extrainfospec) removelistener(callback) adding listeners use addlistener to add a listener to a particular event.
... redirect onbeforesendheaders redirecturl string set to the url to redirect the request to.
... modify request headers onbeforesendheaders requestheaders array of http headers.
...And 5 more matches