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

Method setReasonPhrase

src/tscpp/api/Response.cc:122–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122void
123Response::setReasonPhrase(const string &phrase)
124{
125 if (state_->hdr_buf_ && state_->hdr_loc_) {
126 TSHttpHdrReasonSet(state_->hdr_buf_, state_->hdr_loc_, phrase.c_str(), phrase.length());
127 LOG_DEBUG("Changing response reason phrase to '%s' with hdr_buf=%p and hdr_loc=%p", phrase.c_str(), state_->hdr_buf_,
128 state_->hdr_loc_);
129 }
130}
131
132Headers &
133Response::getHeaders() const

Callers

nothing calls this directly

Calls 3

TSHttpHdrReasonSetFunction · 0.85
c_strMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected