pub struct HttpFrontend {
pub cluster_id: Option<ClusterId>,
pub address: SocketAddr,
pub hostname: String,
pub path: PathRule,
pub method: Option<String>,
pub position: RulePosition,
pub tags: Option<BTreeMap<String, String>>,
}
Expand description
An HTTP or HTTPS frontend, as used within Sōzu
Fields§
§cluster_id: Option<ClusterId>
Send a 401, DENY, if cluster_id is None
address: SocketAddr
§hostname: String
§path: PathRule
§method: Option<String>
§position: RulePosition
Trait Implementations§
Source§impl Clone for HttpFrontend
impl Clone for HttpFrontend
Source§fn clone(&self) -> HttpFrontend
fn clone(&self) -> HttpFrontend
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for HttpFrontend
impl Debug for HttpFrontend
Source§impl<'de> Deserialize<'de> for HttpFrontend
impl<'de> Deserialize<'de> for HttpFrontend
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<HttpFrontend> for RequestHttpFrontend
impl From<HttpFrontend> for RequestHttpFrontend
Source§fn from(val: HttpFrontend) -> Self
fn from(val: HttpFrontend) -> Self
Converts to this type from the input type.
Source§impl Hash for HttpFrontend
impl Hash for HttpFrontend
Source§impl Ord for HttpFrontend
impl Ord for HttpFrontend
Source§fn cmp(&self, other: &HttpFrontend) -> Ordering
fn cmp(&self, other: &HttpFrontend) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for HttpFrontend
impl PartialEq for HttpFrontend
Source§impl PartialOrd for HttpFrontend
impl PartialOrd for HttpFrontend
Source§impl Serialize for HttpFrontend
impl Serialize for HttpFrontend
impl Eq for HttpFrontend
impl StructuralPartialEq for HttpFrontend
Auto Trait Implementations§
impl Freeze for HttpFrontend
impl RefUnwindSafe for HttpFrontend
impl Send for HttpFrontend
impl Sync for HttpFrontend
impl Unpin for HttpFrontend
impl UnwindSafe for HttpFrontend
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.