1 Star 0 Fork 0

hexug / goChainRestfulClient

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
response_model.go 477 Bytes
一键复制 编辑 原始数据 按行查看 历史
hexug 提交于 2023-07-16 18:55 . 完善Response相关方法
package rest
import (
"io"
"net/http"
"net/url"
"sync"
"gitee.com/hexug/go-chain-restful-client/common/logger"
)
func NewResponse(c *Client) *Response {
return &Response{
log: c.log,
}
}
type Response struct {
body io.ReadCloser
headers http.Header
statusCode int
status string
err error
bf []byte
contentType string
isRead bool
url *url.URL
cookies []*http.Cookie
log *logger.Log
lock sync.Mutex
}
Go
1
https://gitee.com/hexug/go-chain-restful-client.git
git@gitee.com:hexug/go-chain-restful-client.git
hexug
go-chain-restful-client
goChainRestfulClient
fe528e9350cb

搜索帮助