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

Method set_range_request

plugins/compress/configuration.cc:278–292  ·  view source on GitHub ↗

"true" and "false" are compatibility with old version, will be removed */

Source from the content-addressed store, hash-verified

276 "true" and "false" are compatibility with old version, will be removed
277 */
278void
279HostConfiguration::set_range_request(const std::string &token)
280{
281 if (token == "true" || token == "none") {
282 range_request_ctl_ = RangeRequestCtrl::NONE;
283 } else if (token == "false" || token == "no-compression") {
284 range_request_ctl_ = RangeRequestCtrl::NO_COMPRESSION;
285 } else if (token == "remove-range") {
286 range_request_ctl_ = RangeRequestCtrl::REMOVE_RANGE;
287 } else if (token == "remove-accept-encoding") {
288 range_request_ctl_ = RangeRequestCtrl::REMOVE_ACCEPT_ENCODING;
289 } else {
290 error("invalid token for range_request: %s", token.c_str());
291 }
292}
293
294Configuration *
295Configuration::Parse(const char *path)

Callers 1

ParseMethod · 0.80

Calls 2

errorFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected