1
0
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:
joe-conigliaro
2019-08-09 20:52:14 +10:00
committed by Alexander Medvednikov
parent 181a39d752
commit d9a83481a5
6 changed files with 1246 additions and 3 deletions

View File

@ -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')