Crates.io | dumbhttp |
lib.rs | dumbhttp |
version | 0.1.4 |
source | src |
created_at | 2022-03-16 07:00:45.780964 |
updated_at | 2022-03-27 05:55:06.743126 |
description | A dumb http server that responds with a preconfigured http response |
homepage | |
repository | |
max_upload_size | |
id | 550999 |
size | 19,318 |
A dumb http server that responds with a preconfigured http response
dumbhttp
curl localhost:3000 -i
HTTP/1.1 200 OK
content-type: application/json
content-length: 0
date: Wed, 16 Mar 2022 04:46:46 GMT
STATUS=400 dumbhttp
curl localhost:3000 -i
HTTP/1.1 400 Bad Request
content-type: application/json
content-length: 0
date: Wed, 16 Mar 2022 04:48:38 GMT
BODY='{"ok": true, "view": {}}' dumbhttp
curl localhost:3000 -i
HTTP/1.1 200 OK
content-type: application/json
content-length: 24
date: Wed, 16 Mar 2022 04:49:40 GMT
{"ok": true, "view": {}}
cargo install dumbhttp
docker run --rm -d -p 3000:3000 -it dhruvasagar/dumbhttp