Skip to content

Commit

Permalink
document querystring parsing options
Browse files Browse the repository at this point in the history
  • Loading branch information
jbr committed Oct 16, 2023
1 parent 497169b commit c0025d8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions trillium/src/conn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,18 @@ impl Conn {
let conn = get("/a/b").on(&());
assert_eq!(conn.querystring(), "");
```
# Parsing
Trillium does not include a querystring parsing library, as there is no universal standard for
querystring encodings of arrays, but several library options exist, inluding:
* [`QueryStrong`](https://docs.rs/querystrong/) (by the author of trillium)
* [`serde_qs`](https://docs.rs/serde_qs/)
* [`querystring`](https://docs.rs/querystring/)
* [`serde_querystring`](https://docs.rs/serde-querystring/latest/serde_querystring/)
*/
pub fn querystring(&self) -> &str {
self.inner.querystring()
Expand Down

0 comments on commit c0025d8

Please sign in to comment.