mirror of
https://github.com/tower-rs/tower-http.git
synced 2026-03-09 06:39:32 +00:00
warp-key-value-store
This examples contains a simple key/value store with an HTTP API built using warp.
Endpoints
GET /:key- Look up a key. If the key doesn't exist it returns404 Not FoundPOST /:key- Insert a key. The value is the request body.
Running the example
RUST_LOG=warp_key_value_store=trace,tower_http=trace \
cargo run --bin warp-key-value-store