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

Method hasKey

plugins/slice/HttpHeader.cc:133–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133bool
134HttpHeader::hasKey(char const *const key, int const keylen) const
135{
136 if (!isValid()) {
137 return false;
138 }
139
140 TSMLoc const locfield(TSMimeHdrFieldFind(m_buffer, m_lochdr, key, keylen));
141 if (nullptr != locfield) {
142 TSHandleMLocRelease(m_buffer, m_lochdr, locfield);
143 return true;
144 }
145
146 return false;
147}
148
149bool
150HttpHeader::removeKey(char const *const keystr, int const keylen)

Callers 3

handleFirstServerHeaderFunction · 0.80
handleNextServerHeaderFunction · 0.80
read_requestFunction · 0.80

Calls 2

TSMimeHdrFieldFindFunction · 0.85
TSHandleMLocReleaseFunction · 0.85

Tested by

no test coverage detected