mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
http: initial windows schannel http support
This commit is contained in:

committed by
Alexander Medvednikov

parent
181a39d752
commit
d9a83481a5
@ -4,11 +4,15 @@
|
||||
|
||||
module http
|
||||
|
||||
#flag -l Urlmon
|
||||
|
||||
#include <Urlmon.h>
|
||||
|
||||
fn download_file_with_progress(url, out string, cb, cb_finished voidptr) {
|
||||
}
|
||||
|
||||
pub fn download_file(url, out string) {
|
||||
C.URLDownloadToFileW(0, url.to_wide(), out.to_wide(), 0, 0)
|
||||
C.URLDownloadToFile(0, url.to_wide(), out.to_wide(), 0, 0)
|
||||
/*
|
||||
if (res == S_OK) {
|
||||
println('Download Ok')
|
||||
|
Reference in New Issue
Block a user