| 184 | } |
| 185 | |
| 186 | void |
| 187 | Url::setScheme(const std::string &scheme) |
| 188 | { |
| 189 | if (!isInitialized()) { |
| 190 | LOG_ERROR("Url %p not initialized", this); |
| 191 | return; |
| 192 | } |
| 193 | |
| 194 | if (TSUrlSchemeSet(state_->hdr_buf_, state_->url_loc_, scheme.c_str(), scheme.length()) == TS_SUCCESS) { |
| 195 | LOG_DEBUG("Set scheme to [%s]", scheme.c_str()); |
| 196 | } else { |
| 197 | LOG_ERROR("Could not set scheme; hdr_buf %p, url_loc %p", state_->hdr_buf_, state_->url_loc_); |
| 198 | } |
| 199 | } |
| 200 | |
| 201 | void |
| 202 | Url::setHost(const std::string &host) |
nothing calls this directly
no test coverage detected