| 334 | toSend = content.toSpanConst(); |
| 335 | sendAsync.callback.bind<HttpTestClient, &HttpTestClient::startReceiveResponse>(*this); |
| 336 | } |
| 337 | auto res = sendAsync.start(*eventLoop, clientSocket, toSend); |
| 338 | SC_ASSERT_RELEASE(res); |
| 339 | } |
| 340 | |
| 341 | void SC::HttpTestClient::startWaiting(AsyncSocketSend::Result&) |
| 342 | { |
| 343 | timeoutAsync.callback.bind<HttpTestClient, &HttpTestClient::startSendingBody>(*this); |
| 344 | auto res = timeoutAsync.start(*eventLoop, bodyDelay); // 10 ms delay |