MCPcopy Create free account
hub / github.com/apache/trafficserver / operator*

Method operator*

src/tscpp/api/Headers.cc:136–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136std::string
137header_field_value_iterator::operator*()
138{
139 if (state_->index_ >= 0) {
140 int length = 0;
141 const char *str = TSMimeHdrFieldValueStringGet(state_->hdr_buf_, state_->hdr_loc_, state_->field_loc_, state_->index_, &length);
142 if (length && str) {
143 return std::string(str, length);
144 }
145 }
146 return std::string();
147}
148
149header_field_value_iterator &
150header_field_value_iterator::operator++()

Callers

nothing calls this directly

Calls 3

stringClass · 0.85
HeaderFieldClass · 0.85

Tested by

no test coverage detected