Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 406 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 406 Bytes

Dumy Web Server

Usage

Create a configuration file

{
    "/my/path/:wildcard": {
        "status": 500, // response status
        "delay": 10000000, // artificial delay in microseconds
        "body": { /* ... */ } // JSON response body
        "headers": { /* ... */ } // additional response headers
    }
}

Run server with configuration

dummy-web-server config.json