Documentation
¶
Index ¶
Constants ¶
View Source
const ModuleName = "http"
Variables ¶
View Source
var ( // ModuleInit represents init for module http. ModuleInit gad.ModuleInitFunc = func(module *gad.Module, c gad.Call) (err error) { spec := module.Spec module.Data = gad.Dict{ "url": &gad.Function{ Module: spec, FuncName: "url", Value: URL, }, "header": &gad.Function{ Module: spec, FuncName: "header", Value: Header, }, "request": &gad.Function{ Module: spec, FuncName: "request", Value: Request, }, "get": &gad.Function{ Module: spec, FuncName: "get", Value: Get, }, "exec": gad.MustNewReflectValue(http.DefaultClient.Do), } return } )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.