| 228 | }; |
| 229 | |
| 230 | void |
| 231 | doDeferredBody() |
| 232 | { |
| 233 | test::stream ts(ioc_, |
| 234 | "POST / HTTP/1.1\r\n" |
| 235 | "User-Agent: test\r\n" |
| 236 | "Content-Type: multipart/form-data\r\n" |
| 237 | "Content-Length: 13\r\n" |
| 238 | "\r\n" |
| 239 | "Hello, world!"); |
| 240 | |
| 241 | handler h; |
| 242 | flat_buffer buffer; |
| 243 | do_form_request(ts, buffer, h); |
| 244 | BEAST_EXPECT(h.body == "Hello, world!"); |
| 245 | } |
| 246 | |
| 247 | //-------------------------------------------------------------------------- |
| 248 |
nothing calls this directly
no test coverage detected