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

strings: simplify Builder (#10263)

This commit is contained in:
Delyan Angelov
2021-05-31 14:21:06 +03:00
committed by GitHub
parent 8990114b4b
commit eac1e25c5d
14 changed files with 65 additions and 76 deletions

View File

@ -2,13 +2,6 @@ import net.http
import net.html
fn main() {
/*
user_agent = 'v.http'
resp := http.get('https://tuicool.com') or {
println('failed to fetch data from the server')
return
}
*/
// http.fetch() sends an HTTP request to the URL with the given method and configurations.
config := http.FetchConfig{
user_agent: 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0'