The effective list of ports for this endpoint.
(&self)
| 193 | |
| 194 | /// The effective list of ports for this endpoint. |
| 195 | pub fn effective_ports(&self) -> Vec<u16> { |
| 196 | if !self.ports.is_empty() { |
| 197 | return self.ports.clone(); |
| 198 | } |
| 199 | if self.port > 0 { |
| 200 | return vec![self.port]; |
| 201 | } |
| 202 | vec![] |
| 203 | } |
| 204 | |
| 205 | /// The set of HTTP methods this endpoint allows. Empty means all (L4-only). |
| 206 | pub fn allowed_methods(&self) -> HashSet<String> { |
no test coverage detected