Skip to content

Commit

Permalink
refactor(Http): 增加Http客户端
Browse files Browse the repository at this point in the history
  • Loading branch information
storezhang committed Dec 13, 2023
1 parent 9dc9b65 commit 2a30d50
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion internal/plugin/base_http.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@ import (
"github.com/go-resty/resty/v2"
)

func (b *Base) Http() *resty.Request {
func (b *Base) Http() *resty.Client {
if nil == b.http {
b.setupHttp()
}

return b.http
}

func (b *Base) Request() *resty.Request {
if nil == b.http {
b.setupHttp()
}
Expand Down

0 comments on commit 2a30d50

Please sign in to comment.