| 157 | } |
| 158 | |
| 159 | void |
| 160 | doReadStdStream() |
| 161 | { |
| 162 | std::string const s = |
| 163 | "HTTP/1.0 200 OK\r\n" |
| 164 | "User-Agent: test\r\n" |
| 165 | "\r\n" |
| 166 | "Hello, world!"; |
| 167 | std::istringstream is(s); |
| 168 | error_code ec; |
| 169 | flat_buffer buffer; |
| 170 | response<string_body> res; |
| 171 | read_istream(is, buffer, res, ec); |
| 172 | BEAST_EXPECTS(! ec, ec.message()); |
| 173 | BEAST_EXPECT(to_string(res) == s); |
| 174 | } |
| 175 | |
| 176 | void |
| 177 | doWriteStdStream() |
nothing calls this directly
no test coverage detected