| 169 | } |
| 170 | |
| 171 | void |
| 172 | Url::setQuery(const std::string &query) |
| 173 | { |
| 174 | if (!isInitialized()) { |
| 175 | LOG_ERROR("Url %p not initialized", this); |
| 176 | return; |
| 177 | } |
| 178 | |
| 179 | if (TSUrlHttpQuerySet(state_->hdr_buf_, state_->url_loc_, query.c_str(), query.length()) == TS_SUCCESS) { |
| 180 | LOG_DEBUG("Set query to [%s]", query.c_str()); |
| 181 | } else { |
| 182 | LOG_ERROR("Could not set query; hdr_buf %p, url_loc %p", state_->hdr_buf_, state_->url_loc_); |
| 183 | } |
| 184 | } |
| 185 | |
| 186 | void |
| 187 | Url::setScheme(const std::string &scheme) |
nothing calls this directly
no test coverage detected