mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-13 14:30:02 -04:00
create session class and refactor js to use it
This commit is contained in:
parent
a282734c13
commit
0a5ace96fb
14 changed files with 359 additions and 192 deletions
|
@ -40,7 +40,6 @@ void close_websocket(CURL* http_handle) {
|
|||
void websocket_set_options(CURL* http_handle) {
|
||||
struct RequestInfo *request_info = get_request_info(http_handle);
|
||||
curl_easy_setopt(http_handle, CURLOPT_CONNECT_ONLY, 2L);
|
||||
request_info->prevent_cleanup = 1;
|
||||
}
|
||||
|
||||
int get_result_size (const struct WSResult* result) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue