https://github.com/zebrajaeger/dummy-http-server
Http Server to show incoming requests.
https://github.com/zebrajaeger/dummy-http-server
Last synced: about 2 months ago
JSON representation
Http Server to show incoming requests.
- Host: GitHub
- URL: https://github.com/zebrajaeger/dummy-http-server
- Owner: zebrajaeger
- License: gpl-3.0
- Created: 2020-02-18T11:10:27.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T18:38:20.000Z (over 2 years ago)
- Last Synced: 2025-03-11T03:50:24.449Z (2 months ago)
- Language: JavaScript
- Size: 46.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dummy http server
[](https://www.gnu.org/licenses/gpl-3.0)
[](https://www.npmjs.com/@zebrajaeger/dummy-http-server)Logs incoming requests (GET,POST,...) to console and returns 200.
## Installation
npm install -g @zebrajaeger/dummy-http-server
## Start
Exec
dhs
or
dummy-http-server
into terminal.
Default port is 2999.
change ist wit -p or --port option:dhs -p 1234
## Stop
Press ctrl + C within console window.
### Use
Make a request with a browser:
http://localhost:2999
The console log may look like this one:headers: { host: 'localhost:2999',
connection: 'keep-alive',
'upgrade-insecure-requests': '1',
'user-agent':
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36',
'sec-fetch-user': '?1',
accept:
'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
'sec-fetch-site': 'none',
'sec-fetch-mode': 'navigate',
'accept-encoding': 'gzip, deflate, br',
'accept-language': 'de-DE,de;q=0.9,en;q=0.8',
cookie: 'io=6MrMv9kVc25N62FEAAA1' }
cookies: { io: '6MrMv9kVc25N62FEAAA1' }
body: {}