1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

move http module to net.http

This commit is contained in:
Abdullah Atta
2019-12-30 09:42:23 +05:00
committed by Alexander Medvednikov
parent 6cee50afda
commit 63b70ddb06
15 changed files with 14 additions and 9 deletions

View File

@@ -6,7 +6,7 @@ module http
import os
pub fn download_file(url, out string) bool {
s := http.get(url) or {
s := get(url) or {
return false
}
os.write_file(out, s.text)

View File

@@ -4,7 +4,7 @@
module http
import net.urllib
import http.chunked
import net.http.chunked
const (
max_redirects = 4

View File

@@ -1,5 +1,5 @@
// import net.urllib
import http
import net.http
fn test_escape_unescape() {
/*

View File

@@ -7,7 +7,7 @@ module vweb
import (
os
net
http
net.http
net.urllib
strings
)