Skip to content

zachary822/dummy-web-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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