1
0
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:
Alexander Medvednikov
2020-05-10 02:07:15 +02:00
parent 09f6cd6a75
commit 10da871743
3 changed files with 14 additions and 1 deletions

View File

@ -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{})
}