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

Method setStatusCode

src/tscpp/api/Response.cc:94–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94void
95Response::setStatusCode(HttpStatus code)
96{
97 if (state_->hdr_buf_ && state_->hdr_loc_) {
98 TSHttpHdrStatusSet(state_->hdr_buf_, state_->hdr_loc_, static_cast<TSHttpStatus>(code));
99 LOG_DEBUG("Changing response status code to %d with hdr_buf=%p and hdr_loc=%p", code, state_->hdr_buf_, state_->hdr_loc_);
100 }
101}
102
103string
104Response::getReasonPhrase() const

Callers 1

Calls 1

TSHttpHdrStatusSetFunction · 0.85

Tested by

no test coverage detected