Files
gf/.example/net/ghttp/client/get.go

13 lines
180 B
Go
Raw Normal View History

2017-11-23 10:21:28 +08:00
package main
import (
2019-04-03 00:03:46 +08:00
"fmt"
2019-07-29 21:01:19 +08:00
"github.com/gogf/gf/net/ghttp"
2017-11-23 10:21:28 +08:00
)
func main() {
r, err := ghttp.Get("http://127.0.0.1:8199/11111/11122")
fmt.Println(err)
fmt.Println(r.Header)
2017-11-23 10:21:28 +08:00
}