MCPcopy Create free account
hub / github.com/apache/trafficserver / setQuery

Method setQuery

src/tscpp/api/Url.cc:171–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171void
172Url::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
186void
187Url::setScheme(const std::string &scheme)

Callers

nothing calls this directly

Calls 3

TSUrlHttpQuerySetFunction · 0.85
c_strMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected