| 350 | } |
| 351 | |
| 352 | void HTTPReq::write(std::ostream & o) |
| 353 | { |
| 354 | o << method << " " << uri << " " << version << CRLF; |
| 355 | for (auto & h : headers) |
| 356 | o << h.first << ": " << h.second << CRLF; |
| 357 | o << CRLF; |
| 358 | } |
| 359 | |
| 360 | std::string HTTPReq::to_string() |
| 361 | { |
no outgoing calls
no test coverage detected