mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
net.http: Response.text -> Response.body (#14478)
This commit is contained in:
@@ -161,7 +161,7 @@ pub fn fetch(config FetchConfig) ?Response {
|
||||
// get_text sends a GET HTTP request to the URL and returns the text content of the response
|
||||
pub fn get_text(url string) string {
|
||||
resp := fetch(url: url, method: .get) or { return '' }
|
||||
return resp.text
|
||||
return resp.body
|
||||
}
|
||||
|
||||
// url_encode_form_data converts mapped data to an URL encoded string
|
||||
|
||||
Reference in New Issue
Block a user