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.
- use cycle.proxy to override the upstreamProxy option, set to false/null to ignore upstram proxy.
Full Documentation
Install
npm install hoxyws
Example
var hoxy = require('hoxyws');
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: '