jsender 0.2.0

Pure Rust implementation of the JSend specification for JSON response bodies.
Documentation

JSender: JSend in Pure Rust

Crates.io Version Crates.io License docs.rs

Pure Rust implementation of the JSend specification for JSON response bodies.

Documentation

About

This crate provides constructors for JSend success, fail, and error response bodies. Each response is paired with the StatusCode it should be served with, which is applied when the response is serialised into a Response. Building on the http crate keeps response construction decoupled from any particular web framework, so the crate can sit in front of any server stack that uses the http::Response type.

Minimum Supported Rust Version

Rust 1.85.1 or higher.

License

Licensed under the MIT License.