Add SpaRouter (#904)

This commit is contained in:
David Pedersen
2022-04-03 18:29:37 +02:00
committed by GitHub
parent 2270cf7b3e
commit 405e3f8c44
10 changed files with 314 additions and 12 deletions
+16
View File
@@ -61,3 +61,19 @@ pub mod __private {
const PATH: &AsciiSet = &FRAGMENT.add(b'#').add(b'?').add(b'{').add(b'}');
pub const PATH_SEGMENT: &AsciiSet = &PATH.add(b'/').add(b'%');
}
#[cfg(test)]
pub(crate) mod test_helpers {
#![allow(unused_imports)]
use axum::{body::HttpBody, BoxError};
mod test_client {
#![allow(dead_code)]
include!(concat!(
env!("CARGO_MANIFEST_DIR"),
"/../axum/src/test_helpers/test_client.rs"
));
}
pub(crate) use self::test_client::*;
}