MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / http_label

Method http_label

crates/openshell-ocsf/src/enums/activity.rs:70–84  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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]

Callers 1

buildMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected