| 342 | } |
| 343 | |
| 344 | std::string HTTPHeaders::Stringify() const |
| 345 | { |
| 346 | std::string out; |
| 347 | for (const auto& [key, value] : m_headers) { |
| 348 | out += key + ": " + value + "\r\n"; |
| 349 | } |
| 350 | |
| 351 | // Headers are terminated by an empty line |
| 352 | out += "\r\n"; |
| 353 | |
| 354 | return out; |
| 355 | } |
| 356 | |
| 357 | std::string HTTPResponse::StringifyHeaders() const |
| 358 | { |
no outgoing calls