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

Method getStatusCode

src/tscpp/api/Response.cc:82–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82HttpStatus
83Response::getStatusCode() const
84{
85 HttpStatus ret_val = HTTP_STATUS_UNKNOWN;
86 if (state_->hdr_buf_ && state_->hdr_loc_) {
87 ret_val = static_cast<HttpStatus>(TSHttpHdrStatusGet(state_->hdr_buf_, state_->hdr_loc_));
88 LOG_DEBUG("Initializing response status code to %d with hdr_buf=%p and hdr_loc=%p", ret_val, state_->hdr_buf_,
89 state_->hdr_loc_);
90 }
91 return ret_val;
92}
93
94void
95Response::setStatusCode(HttpStatus code)

Callers

nothing calls this directly

Calls 1

TSHttpHdrStatusGetFunction · 0.85

Tested by

no test coverage detected