UNPKG

rocky

Version:

Full-featured, middleware-oriented, hackable HTTP and WebSocket proxy

9 lines (7 loc) 175 B
const rocky = require('../..') rocky() .forward('http://localhost:9001') .replay('http://localhost:9002') .replay('http://localhost:9003') .listen(9000) .all('/*')