https://github.com/txchen/mirror
httpmirror, reply with the request details
https://github.com/txchen/mirror
http testing-tools
Last synced: 4 months ago
JSON representation
httpmirror, reply with the request details
- Host: GitHub
- URL: https://github.com/txchen/mirror
- Owner: txchen
- License: mit
- Created: 2019-03-10T20:01:59.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-15T23:01:39.000Z (about 7 years ago)
- Last Synced: 2025-01-15T06:47:47.849Z (about 1 year ago)
- Topics: http, testing-tools
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/httpmirror
- Size: 21.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mirror
httpmirror, reply with the request details, so you can know what exactly your http client sent.
## Usage
### CLI mode
You can install mirror as a global npm package and run:
```bash
npm i -g httpmirror
mirror --help
mirror -p 9500
# or use npx
npx httpmirror --help
```
### Node package mode
You can also include mirror into your application:
```js
const Mirror = require('httpmirror')
const mirror = Mirror({ log: false, port: 8080, bindall: true })
mirror.start().then(msg => console.log(msg))
```