Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/narazaka/shiorust
SHIORI Protocol Parser / Builder
https://github.com/narazaka/shiorust
shiori ukagaka
Last synced: about 1 month ago
JSON representation
SHIORI Protocol Parser / Builder
- Host: GitHub
- URL: https://github.com/narazaka/shiorust
- Owner: Narazaka
- License: zlib
- Created: 2017-02-14T01:25:30.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-06-22T23:10:34.000Z (over 1 year ago)
- Last Synced: 2024-11-26T13:14:38.637Z (about 1 month ago)
- Topics: shiori, ukagaka
- Language: Rust
- Size: 20.5 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# shiorust
SHIORI Protocol Parser
## install
```toml
[dependencies]
shiorust = "0.1"
```## usage
```rust
use shiorust::message::{self, parts::standard_header_name::*, traits::*, Parser};fn foo() {
let r = message::Request::parse("GET SHIORI/3.0\r\nReference0: aaa\r\n\r\n").unwrap();
assert_eq!(r.headers.get_reference(0).unwrap().as_str(), "aaa");
assert_eq!(r.headers.get("Reference0").unwrap().as_str(), "aaa");
assert_eq!(r.headers.get(&Sender), r.headers.get_sender());
}
```## License
[Zlib license](LICENSE)