Crates.io | cookie_parser |
lib.rs | cookie_parser |
version | 1.0.1 |
source | src |
created_at | 2024-11-21 00:32:15.882346 |
updated_at | 2024-11-21 00:38:01.681448 |
description | A tool to parse contents of Cookie/Set-Cookie headers |
homepage | |
repository | https://github.com/shabashab/cookie-parser |
max_upload_size | |
id | 1455481 |
size | 40,743 |
This package/CLI allows you to parse Cookie/Set-Cookie header contents into a more computer-readable struct. The parser is built on pest
cargo add cookie_parser
In order to know more information about usage of this crate as a library, please, refer to Doc
This library exposes a thin CLI.
Cookie/Set-Cookie Parser CLI
USAGE:
cookie_parser <COMMAND>
COMMANDS:
parse-cookie Parses Cookie header contents.
Options:
--file,-f <FILE> File with contents that should be parsed.
parse-set-cookie Parses Set-Cookie header contents.
Options:
--file,-f <FILE> File with contents that should be parsed.
credits Show credits.
help Show help.
You can find examples of input in examples/
directory
Build the library:
make build
Run tests:
make test
For more makefile commands, refer to:
make help
MIT License, 2024, Artem Tarasenko