Last active
October 17, 2022 07:08
-
-
Save dongyuwei/71eb81395def3640048b16c268bfdc68 to your computer and use it in GitHub Desktop.
test inspect.lua and http request with luasocket
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local inspect = require('inspect') | |
local http = require("socket.http") | |
inspect(http) | |
r, c, h = http.request('https://www.baidu.com/') | |
print(r) | |
print(c) | |
inspect(h) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
setup lua env(LUA_PATH, LUA_CPATH)
luarocks path --bin
cat ~/.config/fish/config.fish
install packages using luarocks