Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

可以看到,所有的方法均绑定在ClientResponse对象上,也就是说必须要请求结束后才能打印。

使用示例

package main

import (
	"github.com/gogf/gf/frame/g"
)

func main() {
	response, err := g.Client().Get("https://goframe.org")
	if err != nil {
		panic(err)
	}
	response.RawDump()
}

...