use-status 0.0.1

Small HTTP status utilities for RustUse
Documentation
  • Coverage
  • 63.16%
    12 out of 19 items documented1 out of 12 items with examples
  • Size
  • Source code size: 7.94 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 420.77 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 43s Average build duration of successful builds.
  • all releases: 43s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Documentation
  • RustUse/use-web
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-status

Small HTTP status utilities for RustUse.

Experimental

use-status is experimental while the use-web workspace remains below 0.3.0. Expect small API adjustments during the first release wave.

Example

use use_status::{is_error, reason_phrase, status_class};

assert_eq!(reason_phrase(404), Some("Not Found"));
assert_eq!(status_class(201), Some(use_status::StatusClass::Success));
assert!(is_error(503));

Scope

  • Reason-phrase lookup for common status codes.
  • Classification helpers for response classes.
  • Small utility predicates for application and tooling code.

Non-goals

  • HTTP server implementations.
  • HTTP client implementations.
  • Policy engines.

License

Licensed under either of the following, at your option:

  • Apache License, Version 2.0
  • MIT license