mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-13 22:40:01 -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
|
@ -27,7 +27,7 @@ class FTPSession {
|
|||
};
|
||||
let headers_callback = () => {this.headers_callback()};
|
||||
|
||||
http_handle = create_handle(url, data_callback, finish_callback, headers_callback);
|
||||
http_handle = create_request(url, data_callback, finish_callback, headers_callback);
|
||||
_ftp_set_options(http_handle, url, 1);
|
||||
start_request(http_handle);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue