const myHeaders = new Headers(); // Currently emptyHeaders: delete() method / notebook
Headers: delete() method
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
myHeaders.append("Content-Type", "image/jpeg");
myHeaders.get("Content-Type"); // Returns 'image/jpeg'myHeaders.delete("Content-Type");
myHeaders.get("Content-Type"); // Returns null, as it has been deleted