GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

Search e01

One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.

7 results across 6 corpora for proxy.onError.

Encyclopedia 1

WebSocket

we don't need the connection anymore }; ws.onclose = (event: CloseEvent) => { console.log("Connection closed", event.code, event.reason, event.wasClean); }; ws.onerror = () => { console.log("Connection closed due to error"); }; GET /chat HTTP/1.1 Host: server.example.com Upgrade: websocket Connection: Upgrade Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ== Origin: http://example.com Sec-WebSocket-Protocol: chat, supercha

e01 Encyclopedia · CC BY-SA 4.0 · https://en.wikipedia.org/w/index.php?oldid=1376734210

Developer library 6

proxy

tains information about a web request that the browser is about to make. ## Properties - proxy.settings - : Get and set proxy settings. ## Events - proxy.onError - : Fired when the system encounters an error running the PAC script or the `onRequest` listener. - proxy.onRequest - : Fired when a web request is about to be made, giving the extension an opportunity to proxy it. h2 ## Browser compatibility

proxy.onRequest

an array ending in a `null` object (`[{ ... proxy info ...} , null]`) is returned. If there is an error specifying the proxy.ProxyInfo objects, then proxy.onError is called. - `filter` - : webRequest.RequestFilter. A set of filters that restricts the events sent to the listener. - `extraInfoSpec` - : `array` of `string`. Extra options for the event. Pass `"requestHeaders"` to include the request headers in

proxy.onError

t` listener. The error can be triggered by throwing or returning an invalid value in the proxy.onRequest event handler. ## Syntax ```js-nolint browser.proxy.onError.addListener(listener) browser.proxy.onError.removeListener(listener) browser.proxy.onError.hasListener(listener) ``` Events have three functions: - `addListener(listener)` - : Adds a listener to this event. - `removeListener(listener)` - : Stop l

Firefox 51 release notes for developers

instead of returning 0 ([Firefox bug 1287655](https://bugzil.la/1287655)). - The HTMLImageElement interface and the corresponding img element now support the `onerror` event handler, sending error events to the element whenever [errors occur attempting to load or interpret images](/docs/Web/API/HTMLImageElement#errors). - You can now change a Web Animation's effect by setting the value of its effect property. Previo

Promise

`Image didn't load successfully; error code: + ${request.statusText}`, ), ); } }; // Handle network errors request.onerror = () => reject(new Error("There was a network error.")); // Send the request request.send(); }); } // Get a reference to the body element, and create a new image object const body = document.querySelector("body"); const myImage = new Image()

Using Web Workers

minate method: ```js myWorker.terminate(); ``` The worker thread is killed immediately. ### Handling errors When a runtime error occurs in the worker, its `onerror` event handler is called. It receives an event named `error` which implements the `ErrorEvent` interface. The event doesn't bubble and is cancelable; to prevent the default action from taking place, the worker can call the error event's [`preventDefau

JSON results · Services directory