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:
committed by
Alexander Medvednikov
parent
6cee50afda
commit
63b70ddb06
@@ -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)
|
||||
@@ -4,7 +4,7 @@
|
||||
module http
|
||||
|
||||
import net.urllib
|
||||
import http.chunked
|
||||
import net.http.chunked
|
||||
|
||||
const (
|
||||
max_redirects = 4
|
||||
@@ -1,5 +1,5 @@
|
||||
// import net.urllib
|
||||
import http
|
||||
import net.http
|
||||
|
||||
fn test_escape_unescape() {
|
||||
/*
|
||||
@@ -7,7 +7,7 @@ module vweb
|
||||
import (
|
||||
os
|
||||
net
|
||||
http
|
||||
net.http
|
||||
net.urllib
|
||||
strings
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user