use-method 0.0.1

Small HTTP method utilities for RustUse
Documentation
  • Coverage
  • 47.37%
    9 out of 19 items documented1 out of 9 items with examples
  • Size
  • Source code size: 7.43 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 352.01 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 24s Average build duration of successful builds.
  • all releases: 24s 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-method

Small HTTP method utilities for RustUse.

Experimental

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

Example

use use_method::{is_safe_method, parse_method};

assert!(is_safe_method("GET"));
assert_eq!(parse_method("patch"), Some(use_method::HttpMethod::Patch));

Scope

  • Lightweight method parsing and normalization.
  • Small helpers for HTTP semantics such as safety and idempotency.
  • Graceful handling for unknown but valid method tokens.

Non-goals

  • Routing.
  • Middleware.
  • Request execution.
  • Policy engines.

License

Licensed under either of the following, at your option:

  • Apache License, Version 2.0
  • MIT license