Add example showing how to handle empty vs missing query params (#443)

This commit is contained in:
David Pedersen
2021-11-02 14:42:47 +01:00
committed by GitHub
parent a048d6443b
commit 98907b8887
3 changed files with 133 additions and 0 deletions
@@ -0,0 +1,12 @@
[package]
name = "example-query-params-with-empty-strings"
version = "0.1.0"
edition = "2018"
publish = false
[dependencies]
axum = { path = "../.." }
tokio = { version = "1.0", features = ["full"] }
serde = { version = "1.0", features = ["derive"] }
tower = { version = "0.4", features = ["util"] }
hyper = "0.14"