| 199 | } |
| 200 | |
| 201 | void |
| 202 | Url::setHost(const std::string &host) |
| 203 | { |
| 204 | if (!isInitialized()) { |
| 205 | LOG_ERROR("Url %p not initialized", this); |
| 206 | return; |
| 207 | } |
| 208 | |
| 209 | if (TSUrlHostSet(state_->hdr_buf_, state_->url_loc_, host.c_str(), host.length()) == TS_SUCCESS) { |
| 210 | LOG_DEBUG("Set host to [%s]", host.c_str()); |
| 211 | } else { |
| 212 | LOG_ERROR("Could not set host; hdr_buf %p, url_loc %p", state_->hdr_buf_, state_->url_loc_); |
| 213 | } |
| 214 | } |
| 215 | |
| 216 | void |
| 217 | Url::setPort(const uint16_t port) |
nothing calls this directly
no test coverage detected