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

Method setName

src/tscpp/api/Headers.cc:316–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316bool
317HeaderField::setName(const std::string &str)
318{
319 return (TSMimeHdrFieldNameSet(iter_.state_->mloc_container_->hdr_buf_, iter_.state_->mloc_container_->hdr_loc_,
320 iter_.state_->mloc_container_->field_loc_, str.c_str(), str.length()) == TS_SUCCESS);
321}
322
323bool
324HeaderField::operator==(const char *field_name) const

Callers

nothing calls this directly

Calls 3

TSMimeHdrFieldNameSetFunction · 0.85
c_strMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected