| 803 | if (not result) |
| 804 | { |
| 805 | fail(result); |
| 806 | } |
| 807 | } |
| 808 | |
| 809 | void HttpWebSocketClientHandshake::onResponse(HttpAsyncClientResponse& response) |
| 810 | { |
| 811 | SC_HTTP_ASSERT_RELEASE(client != nullptr); |
| 812 | SC_HTTP_ASSERT_RELEASE(transport != nullptr); |
| 813 | |
| 814 | Result result = HttpWebSocketHandshake::validateClientResponse(response, clientKey, sha1Mode); |
| 815 | if (result) |
| 816 | { |
| 817 | result = client->detachWebSocketTransport(*transport); |
| 818 | } |
| 819 | if (not result) |
| 820 | { |
| 821 | fail(result); |
| 822 | return; |
| 823 | } |
| 824 | if (onConnected.isValid()) |
| 825 | { |
| 826 | onConnected(*transport); |
| 827 | } |
| 828 | } |
| 829 | |
| 830 | void HttpWebSocketClientHandshake::onClientError(Result result) { fail(result); } |
nothing calls this directly
no test coverage detected