You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#include "csoap/http_message.h"
|
|
|
|
namespace csoap {
|
|
|
|
void HttpMessage::SetHeader(const std::string& name, const std::string& value) {
|
|
for (HttpHeader& h : headers_) {
|
|
if (h.name == name) {
|
|
h.value = value;
|
|
return;
|
|
}
|
|
}
|
|
|
|
headers_.push_back({ name, value });
|
|
}
|
|
|
|
} // namespace csoap
|