| 288 | } |
| 289 | |
| 290 | std::string HTTPMsg::get_header(const std::string& name) const |
| 291 | { |
| 292 | auto it = headers.find(name); |
| 293 | if (it == headers.end()) |
| 294 | return ""; |
| 295 | else |
| 296 | return it->second; |
| 297 | } |
| 298 | |
| 299 | int HTTPReq::parse(const char *buf, size_t len) |
| 300 | { |
no outgoing calls