| 92 | } |
| 93 | |
| 94 | void |
| 95 | Response::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 | |
| 103 | string |
| 104 | Response::getReasonPhrase() const |
no test coverage detected