| 192 | } |
| 193 | |
| 194 | void |
| 195 | HttpTransactHeaders::build_base_response(HTTPHdr *outgoing_response, HTTPStatus status, const char *reason_phrase, |
| 196 | int reason_phrase_len, ink_time_t date) |
| 197 | { |
| 198 | if (!outgoing_response->valid()) { |
| 199 | outgoing_response->create(HTTP_TYPE_RESPONSE); |
| 200 | } |
| 201 | |
| 202 | ink_assert(outgoing_response->type_get() == HTTP_TYPE_RESPONSE); |
| 203 | |
| 204 | outgoing_response->version_set(HTTPVersion(1, 1)); |
| 205 | outgoing_response->status_set(status); |
| 206 | outgoing_response->reason_set(reason_phrase, reason_phrase_len); |
| 207 | outgoing_response->set_date(date); |
| 208 | } |
| 209 | |
| 210 | //////////////////////////////////////////////////////////////////////// |
| 211 | // Copy all non hop-by-hop header fields from src_hdr to new_hdr. |
nothing calls this directly
no test coverage detected