small readme fix
This commit is contained in:
@@ -121,7 +121,7 @@ Sorting options:
|
|||||||
* `http:post(url, body, media_type, [id])` - executes an HTTP POST request;
|
* `http:post(url, body, media_type, [id])` - executes an HTTP POST request;
|
||||||
* `http:put(url, body, media_type, [id])` - executes an HTTP request;
|
* `http:put(url, body, media_type, [id])` - executes an HTTP request;
|
||||||
* `http:delete(url, [id])` - executes an HTTP DELETE 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.).
|
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.).
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user