| 154 | } |
| 155 | |
| 156 | void |
| 157 | Url::setPath(const std::string &path) |
| 158 | { |
| 159 | if (!isInitialized()) { |
| 160 | LOG_ERROR("Url %p not initialized", this); |
| 161 | return; |
| 162 | } |
| 163 | |
| 164 | if (TSUrlPathSet(state_->hdr_buf_, state_->url_loc_, path.c_str(), path.length()) == TS_SUCCESS) { |
| 165 | LOG_DEBUG("Set path to [%s]", path.c_str()); |
| 166 | } else { |
| 167 | LOG_ERROR("Could not set path; hdr_buf %p, url_loc %p", state_->hdr_buf_, state_->url_loc_); |
| 168 | } |
| 169 | } |
| 170 | |
| 171 | void |
| 172 | Url::setQuery(const std::string &query) |
nothing calls this directly
no test coverage detected