| 106 | } |
| 107 | |
| 108 | void |
| 109 | doCgiResponse() |
| 110 | { |
| 111 | std::string const s = "Hello, world!"; |
| 112 | test::stream t0{ioc_, s}; |
| 113 | t0.read_size(3); |
| 114 | t0.close_remote(); |
| 115 | test::stream t1{ioc_}, t1r{ioc_}; |
| 116 | t1.connect(t1r); |
| 117 | error_code ec; |
| 118 | send_cgi_response(t0, t1, ec); |
| 119 | BEAST_EXPECTS(! ec, ec.message()); |
| 120 | BEAST_EXPECT(equal_body<false>(t1r.str(), s)); |
| 121 | } |
| 122 | |
| 123 | void |
| 124 | doRelay() |
nothing calls this directly
no test coverage detected