This library is an actix-web middleware that:
- Changes the
content-type
header from html toapplication/json
- changes the repsonses body from blank to a JSON blob that looks like:
{"error": 404, "message": "error"}
Currently this project only requires you to run:
cargo check
All tests are unit written in src/lib.rs
currently to run the tests:
cargo test
Please fork, edit/create a patch and submit a PR against the project repo
Use the issues-page of the github repo