mirror of
https://github.com/zyedidia/micro.git
synced 2024-08-17 16:00:43 +03:00
Compare commits
2 Commits
7cc47ff9b1
...
4545ea3f93
Author | SHA1 | Date | |
---|---|---|---|
|
4545ea3f93 | ||
|
3e475e2677 |
@ -583,8 +583,17 @@ func importHumanize() *lua.LTable {
|
||||
func importHTTP() *lua.LTable {
|
||||
pkg := L.NewTable()
|
||||
|
||||
L.SetField(pkg, "CanonicalHeaderKey", luar.New(L, http.CanonicalHeaderKey))
|
||||
L.SetField(pkg, "DetectContentType", luar.New(L, http.DetectContentType))
|
||||
L.SetField(pkg, "StatusText", luar.New(L, http.StatusText))
|
||||
L.SetField(pkg, "Client", luar.New(L, http.Client))
|
||||
L.SetField(pkg, "Header", luar.New(L, http.Header))
|
||||
L.SetField(pkg, "NewRequest", luar.New(L, http.NewRequest))
|
||||
L.SetField(pkg, "Get", luar.New(L, http.Get))
|
||||
L.SetField(pkg, "Head", luar.New(L, http.Head))
|
||||
L.SetField(pkg, "Post", luar.New(L, http.Post))
|
||||
L.SetField(pkg, "PostForm", luar.New(L, http.PostForm))
|
||||
L.SetField(pkg, "ReadResponse", luar.New(L, http.ReadResponse))
|
||||
|
||||
return pkg
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user