| 523 | } |
| 524 | |
| 525 | std::pair<bool, std::string> HTTPRequest::GetHeader(const std::string& hdr) const |
| 526 | { |
| 527 | const struct evkeyvalq* headers = evhttp_request_get_input_headers(req); |
| 528 | assert(headers); |
| 529 | const char* val = evhttp_find_header(headers, hdr.c_str()); |
| 530 | if (val) |
| 531 | return std::make_pair(true, val); |
| 532 | else |
| 533 | return std::make_pair(false, ""); |
| 534 | } |
| 535 | |
| 536 | std::string HTTPRequest::ReadBody() |
| 537 | { |
no outgoing calls