[Net] Non-blocking request in HTTPClientTCP.

HTTPClientJavaScript already supports non-blocking requests.
This commit is contained in:
Fabio Alessandrelli
2022-02-03 01:33:15 +01:00
parent 6de5bafd2f
commit ac4fb2996b
2 changed files with 31 additions and 12 deletions

View File

@@ -62,6 +62,7 @@ private:
int64_t body_left = 0;
bool read_until_eof = false;
Ref<StreamPeerBuffer> request_buffer;
Ref<StreamPeerTCP> tcp_connection;
Ref<StreamPeer> connection;
Ref<HTTPClientTCP> proxy_client; // Negotiate with proxy server.