Crates.io | minimal-http-responder |
lib.rs | minimal-http-responder |
version | 0.1.2 |
source | src |
created_at | 2021-06-26 00:19:29.802423 |
updated_at | 2022-12-30 17:38:11.563991 |
description | A minimal HTTP responder |
homepage | |
repository | https://github.com/rbtying/minimal-http-responder/ |
max_upload_size | |
id | 415032 |
size | 10,604 |
This minimal-http-responder
is intended to create the minimal container that can return a particular HTTP status code.
It returns 200 OK by default, and can be configured by environment variable.
Usage:
minimal-http-responder
This program listens on all interfaces on port 2020.
Environment variables:
STATUS_CODE
: the status code that the minimal-http-responder
should return (e.g. 200, 403, etc)TEXT
: the body text that the minimal-http-responder
should return. If not specified, a default value is chosen based on the status code.