This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
api:internet [2017/06/26 00:23] ashindigo [Internet API] |
api:internet [2019/06/12 05:26] jacky_wang [Internet API] |
||
---|---|---|---|
Line 9: | Line 9: | ||
The returned function is an iterator over chunks of the result, use it like so: | The returned function is an iterator over chunks of the result, use it like so: | ||
`for chunk in internet.request(...) do stuff() end` | `for chunk in internet.request(...) do stuff() end` | ||
+ | Note that **this method ALSO support HTTPS**. So simply use | ||
+ | `internet.request("https://example.com")` to send a request through HTTPS. | ||
- `internet.socket(address:string[, port:number]):table` | - `internet.socket(address:string[, port:number]):table` |