Socket
Book a DemoInstallSign in
Socket

@zebrajaeger/dummy-http-server

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zebrajaeger/dummy-http-server

[![License: LGPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0) [![npm version](https://badge.fury.io/js/%40zebrajaeger%2Fdummy-http-server.svg)](https://www.npmjs.com/@zebrajaeger/dummy-http-server)

1.0.1
latest
Source
npmnpm
Version published
Weekly downloads
1
-75%
Maintainers
1
Weekly downloads
 
Created
Source

Dummy http server

License: LGPL v3 npm version

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: {} 

FAQs

Package last updated on 20 Feb 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.