v0.34.0_1
This commit is contained in:
1 parent
9b3d6731cc
commit
00f29f92c8
68 files changed
+2599
-513
No files matched your search
+9
-2
@@ -13,7 +13,7 @@ use axum::{
|
||||
response::{IntoResponse, Response},
|
||||
Extension, Router,
|
||||
};
|
||||
use body::{Direction, Exchange, MeteredBody};
|
||||
use body::{Direction, Exchange, ExchangeSource, MeteredBody};
|
||||
use bytes::Bytes;
|
||||
use http::{
|
||||
header::{HeaderValue, HOST, USER_AGENT},
|
||||
@@ -21,6 +21,13 @@ use http::{
|
||||
};
|
||||
use http_body::Body as HttpBody;
|
||||
use http_body_util::BodyExt;
|
||||
/// A route resolved against the immutable snapshot in the observation layer.
|
||||
/// The internal error-fallback dispatcher must resolve its target independently.
|
||||
#[derive(Clone)]
|
||||
struct SelectedRouteContext {
|
||||
frontend: Option<Arc<crate::config::CompiledFrontend>>,
|
||||
route: Option<Arc<crate::config::CompiledRoute>>,
|
||||
}
|
||||
#[derive(Clone)]
|
||||
struct ResponseRulesApplied;
|
||||
#[derive(Clone)]
|
||||
@@ -42,7 +49,7 @@ struct OriginBackend(String);
|
||||
|
||||
use std::{
|
||||
sync::{
|
||||
atomic::{AtomicBool, AtomicU16, AtomicU64, Ordering},
|
||||
atomic::{AtomicBool, AtomicU16, AtomicU64, AtomicU8, Ordering},
|
||||
Arc, Mutex,
|
||||
},
|
||||
time::{Duration, Instant},
|
||||
|
||||
Reference in new issue
Block a user