An open API service indexing awesome lists of open source software.

https://github.com/mrgrd56/simple-http-server

Simple HTTP server for testing
https://github.com/mrgrd56/simple-http-server

javascript nodejs simple-http-server testing

Last synced: 6 months ago
JSON representation

Simple HTTP server for testing

Awesome Lists containing this project

README

          

# Simple HTTP Server

### Usage

```shell
node ./index.js
```

> All the arguments are optional

| Argument | Description | Default value |
|----------------|----------------------------------------|---------------|
| port | The port of the server | 9999 |
| host | The host of the server | 0.0.0.0 |
| responseBody | The content returned by the server | Hello, world! |
| responseStatus | The status code returned by the server | 200 |

### Examples

```shell
node ./index.js 80 localhost "Lorem ipsum" 403

node ./index.js 8080 192.168.0.123

node ./index.js 81
```