use-cookie 0.0.1

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

Small cookie utilities for RustUse.

Experimental

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

Example

use use_cookie::{get_cookie, parse_set_cookie_basic};

assert_eq!(get_cookie("session=abc; theme=dark", "theme").as_deref(), Some("dark"));
assert!(parse_set_cookie_basic("session=abc; Path=/; HttpOnly").is_some());

Scope

  • Cookie header parsing and formatting.
  • Lightweight Set-Cookie inspection for common attributes.
  • Small validation helpers for cookie names.

Non-goals

  • Browser cookie jars.
  • Public suffix handling.
  • Security policy engines.
  • Session management.

License

Licensed under either of the following, at your option:

  • Apache License, Version 2.0
  • MIT license