tower-http/examples/warp-key-value-store

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 returns 404 Not Found
  • POST /: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