| 80 | } |
| 81 | |
| 82 | HttpStatus |
| 83 | Response::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 | |
| 94 | void |
| 95 | Response::setStatusCode(HttpStatus code) |
nothing calls this directly
no test coverage detected