This commit is contained in:
Jun Kurihara 2022-07-27 22:21:42 +09:00
commit d750f87331
No known key found for this signature in database
GPG key ID: 48ADFD173ED22B03
4 changed files with 6 additions and 5 deletions

View file

@ -17,7 +17,8 @@ use tokio_rustls::rustls::{
pub use upstream::{ReverseProxy, Upstream, UpstreamGroup};
pub use upstream_opts::UpstreamOption;
// server name (hostname or ip address) and path name representation in backends
// Server name (hostname or ip address) and path name representation in backends
// For searching hashmap or key list by exact or longest-prefix matching
pub type ServerNameExp = Vec<u8>; // lowercase ascii bytes
pub type PathNameExp = Vec<u8>; // lowercase ascii bytes
@ -111,7 +112,7 @@ impl Backend {
/// HashMap and some meta information for multiple Backend structs.
pub struct Backends {
pub apps: HashMap<ServerNameExp, Backend>, // hyper::uriで抜いたhostで引っ掛ける
pub default_server_name: Option<ServerNameExp>, // for plaintext http
pub default_server_name_bytes: Option<ServerNameExp>, // for plaintext http
}
impl Backends {