UNPKG

xhr-sniffer

Version:

🔨 Sniff HTTP requests making by XHR in the browser or HTTP module in Node.js

10 lines (7 loc) • 145 B
'use strict'; function makeRequest() { const xhr = new window.XMLHttpRequest(); xhr.open('GET', '/'); xhr.send(); } makeRequest();