| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,6 +17,7 @@ class Response { | |||
| 17 | 17 | explicit Response(Session* session); | |
| 18 | 18 | ||
| 19 | 19 | void SetStatus(const uint16_t status); | |
| 20 | + void SetHeader(const std::string& key, const std::string& value); | ||
| 20 | 21 | ||
| 21 | 22 | void KeepAlive(bool alive); | |
| 22 | 23 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,6 +21,10 @@ void Response::SetStatus(const uint16_t status) { | |||
| 21 | 21 | res.result(status); | |
| 22 | 22 | } | |
| 23 | 23 | ||
| 24 | + void Response::SetHeader(const std::string& key, const std::string& value) { | ||
| 25 | + res.set(key, value); | ||
| 26 | + } | ||
| 27 | + | ||
| 24 | 28 | void Response::KeepAlive(bool alive) { | |
| 25 | 29 | res.keep_alive(alive); | |
| 26 | 30 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments