| 350 | } |
| 351 | |
| 352 | void SC::HttpTestClient::startReceiveResponse(AsyncSocketSend::Result& result) |
| 353 | { |
| 354 | (void)(result); |
| 355 | SC_ASSERT_RELEASE(content.resizeWithoutInitializing(1024)); |
| 356 | |
| 357 | receivedBytes = 0; |
| 358 | headersReceived = false; |
| 359 | receiveAsync.callback.bind<HttpTestClient, &HttpTestClient::tryParseResponse>(*this); |
| 360 | auto res = receiveAsync.start(*eventLoop, clientSocket, content.toSpan()); |
| 361 | if (not res) |
| 362 | { |
| 363 | // TODO: raise error |
| 364 | } |
| 365 | } |
| 366 | |
| 367 | void SC::HttpTestClient::tryParseResponse(AsyncSocketReceive::Result& result) |
| 368 | { |
nothing calls this directly
no test coverage detected