Ai
1 Star 0 Fork 0

hexug/goChainRestfulClient

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
response_model.go 501 Bytes
一键复制 编辑 原始数据 按行查看 历史
hexug 提交于 2024-08-12 14:47 +08:00 . 解决请求出错就直接退出进程的问题
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,
statusCode: 0,
}
}
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
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
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
v0.5.3

搜索帮助