Function AppendHeader

Synopsis

#include <include/restclient-cpp/connection.h>

void AppendHeader(const std::string &key, const std::string &value)

Description

append additional headers

append a header to the internal map

Parameters

key - for the header field

value - for the header field

Mentioned in

Source

Lines 108-112 in source/connection.cc. Line 222 in include/restclient-cpp/connection.h.

void
RestClient::Connection::AppendHeader(const std::string& key,
                                     const std::string& value) {
  this->headerFields[key] = value;
}





Add Discussion as Guest

Log in