mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
* HTTP.{cpp,h} : add HTTPMsg::{add,del}_header() helpers
This commit is contained in:
parent
50ff0d251a
commit
a461f462d2
2 changed files with 18 additions and 0 deletions
3
HTTP.h
3
HTTP.h
|
@ -56,6 +56,9 @@ namespace http {
|
|||
|
||||
struct HTTPMsg {
|
||||
std::map<std::string, std::string> headers;
|
||||
|
||||
void add_header(const char *name, const char *value, bool replace = false);
|
||||
void del_header(const char *name);
|
||||
};
|
||||
|
||||
struct HTTPReq : HTTPMsg {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue