INNER CODE UNIT · Rust
strong_eq
TheWaWaR/simple-http-server · src/handlers.rs:118
fn strong_eq(&self, other: &Self) -> bool {
!self.weak && !other.weak && self.tag == other.tag
}
fn weak_eq(&self, other: &Self) -> bool {
self.tag == other.tag
}
fn header_value(&self) -> String {
if self.weak {
format!("W/\"{}\"", self.tag)
} else {
format!("\"{}\"", self.tag)
}
}
}
impl ChannelBody {