rhttp_status_code 1.0.0

RFC9110 HTTP Status Code
Documentation
  • Coverage
  • 100%
    46 out of 46 items documented1 out of 1 items with examples
  • Size
  • Source code size: 19.82 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.5 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • caojen/http_status_code
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • caojen

rhttp_status_code

This library provides definition (in number, u16) of HTTP status code, which are defined in rfc9110.

Usage

First, add this in your Cargo.toml:

[dependencies]
rhttp_status_code = { version = "1" }

Then, you can use it in code, like:

fn main() {
    // Note: All constants are u16
    let _a: u16 = rhttp_status_code::OK;
    let _b: u16 = rhttp_status_code::Forbidden;
}

Reference

RFC9110, Session 15: Link