minimal-http-responder

Crates.iominimal-http-responder
lib.rsminimal-http-responder
version0.1.2
sourcesrc
created_at2021-06-26 00:19:29.802423
updated_at2022-12-30 17:38:11.563991
descriptionA minimal HTTP responder
homepage
repositoryhttps://github.com/rbtying/minimal-http-responder/
max_upload_size
id415032
size10,604
Robert Ying (rbtying)

documentation

README

minimal-http-responder

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.
Commit count: 46

cargo fmt