mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: handle unknown fields in fail_if_immutable
This commit is contained in:
@ -44,6 +44,14 @@ pub:
|
||||
status_code int
|
||||
}
|
||||
|
||||
pub fn new_request(method, url, data string) ?Request{
|
||||
return Request{
|
||||
method: method
|
||||
url: url
|
||||
data: data
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get(url string) ?Response {
|
||||
return fetch_with_method('GET', url, FetchConfig{})
|
||||
}
|
||||
|
Reference in New Issue
Block a user