MCPcopy Create free account
hub / github.com/apache/trafficserver / Contains

Method Contains

include/cripts/Matcher.hpp:149–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147 // Make sure we only allow the cripts::Method::* constants
148
149 [[nodiscard]] bool
150 Contains(cripts::Header::Method method) const
151 {
152 auto data = method.Data();
153
154 return end() != std::find_if(begin(), end(), [&](const cripts::Header::Method &header) { return header.Data() == data; });
155 }
156
157 [[nodiscard]] bool
158 Match(cripts::Header::Method method) const

Callers

nothing calls this directly

Calls 1

DataMethod · 0.45

Tested by

no test coverage detected