mirror of
https://github.com/vlang/v.git
synced 2025-08-04 02:07:28 -04:00
net.http: default explicitly to Method.get for http.Request and http.FetchConfig too
This commit is contained in:
parent
330dda59c8
commit
c7ebc477b0
@ -15,7 +15,7 @@ const (
|
||||
pub struct FetchConfig {
|
||||
pub mut:
|
||||
url string
|
||||
method Method
|
||||
method Method = .get
|
||||
header Header
|
||||
data string
|
||||
params map[string]string
|
||||
|
@ -21,7 +21,7 @@ pub type RequestFinishFn = fn (request &Request, final_size u64) !
|
||||
pub struct Request {
|
||||
pub mut:
|
||||
version Version = .v1_1
|
||||
method Method
|
||||
method Method = .get
|
||||
header Header
|
||||
host string
|
||||
cookies map[string]string
|
||||
|
Loading…
x
Reference in New Issue
Block a user