(self)
| 68 | /// Returns a human-readable label for HTTP activity context. |
| 69 | #[must_use] |
| 70 | pub fn http_label(self) -> &'static str { |
| 71 | match self { |
| 72 | Self::Unknown => "Unknown", |
| 73 | Self::Open => "Connect", |
| 74 | Self::Close => "Delete", |
| 75 | Self::Reset => "Get", |
| 76 | Self::Fail => "Head", |
| 77 | Self::Refuse => "Options", |
| 78 | Self::Traffic => "Post", |
| 79 | Self::Listen => "Put", |
| 80 | Self::Trace => "Trace", |
| 81 | Self::Patch => "Patch", |
| 82 | Self::Other => "Other", |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | /// Returns a human-readable label for Detection Finding activity context. |
| 87 | #[must_use] |