MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / UpdateHeader

Method UpdateHeader

libi2pd/HTTP.cpp:372–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

370 }
371
372 void HTTPReq::UpdateHeader (const std::string& name, const std::string& value)
373 {
374 for (auto& it : headers)
375 if (boost::iequals(it.first, name))
376 {
377 it.second = value;
378 break;
379 }
380 }
381
382 void HTTPReq::RemoveHeader (const std::string& name, const std::string& exempt)
383 {

Callers 4

SanitizeHTTPRequestMethod · 0.80
HandleRequestMethod · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by 1

mainFunction · 0.64