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
+12
View File
@@ -0,0 +1,12 @@
#![allow(clippy::blacklisted_name)]
use crate::{body::HttpBody, BoxError};
mod test_client;
pub(crate) use self::test_client::*;
pub(crate) fn assert_send<T: Send>() {}
pub(crate) fn assert_sync<T: Sync>() {}
pub(crate) fn assert_unpin<T: Unpin>() {}
pub(crate) struct NotSendSync(*const ());
@@ -1,7 +1,4 @@
#![allow(clippy::blacklisted_name)]
use crate::body::HttpBody;
use crate::BoxError;
use super::{BoxError, HttpBody};
use bytes::Bytes;
use http::{
header::{HeaderName, HeaderValue},
@@ -15,12 +12,6 @@ use std::{
use tower::make::Shared;
use tower_service::Service;
pub(crate) fn assert_send<T: Send>() {}
pub(crate) fn assert_sync<T: Sync>() {}
pub(crate) fn assert_unpin<T: Unpin>() {}
pub(crate) struct NotSendSync(*const ());
pub(crate) struct TestClient {
client: reqwest::Client,
addr: SocketAddr,