README
Hoxy
Hoxy is an HTTP traffic-sniffing and manipulation tool for JavaScript programmers.
Update
- Intercept WebSocket traffic.
- Option upstreamProxy support socks proxy.
- Bypass CONNECT request if the certAuthority option is not set.
Full Documentation
Install
npm install @subns/hoxy
Example
var hoxy = require('@subns/hoxy');
var proxy = hoxy.createServer().listen(8080);
proxy.intercept({
// intercept during the response phase
phase: 'response',
// only intercept html pages
mimeType: 'text/html',
// expose the response body as a cheerio object
// (cheerio is a jQuery clone)
as: '