small readme fix

This commit is contained in:
Evgeny
2021-09-02 21:17:30 +03:00
parent ea81114773
commit d1726d6e0a

View File

@@ -121,7 +121,7 @@ Sorting options:
* `http:post(url, body, media_type, [id])` - executes an HTTP POST request;
* `http:put(url, body, media_type, [id])` - executes an HTTP request;
* `http:delete(url, [id])` - executes an HTTP DELETE request;
* `http:set_headers(table) - sets the headers for **all** subsequent network requests; the argument is a table with strings like "Cache-Control: no-cache".
* `http:set_headers(table)` - sets the headers for **all** subsequent network requests; the argument is a table with strings like "Cache-Control: no-cache".
These functions do not return any value, but instead call the `on_network_result(string, [code])` callback. The first argument is the body of the response, the second (optional) is the code (200, 404, etc.).