多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
#### Get ``` req := httplib.Get("http://www.baidu.com") res, err := req.String() if err != nil { fmt.Println(err) } fmt.Println(res) ``` #### Post ``` req := httplib.Post("http://beego.me/") req.Param("username","astaxie") req.Param("password","123456") ``` #### Header ``` req := httplib.Post("http://beego.me/") req.Header("Accept-Encoding","gzip,deflate,sdch") req.Header("Host","beego.me") req.Header("User-Agent","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.57 Safari/537.36") ```