Skip to content

Commit

Permalink
add GetRestyClient method
Browse files Browse the repository at this point in the history
  • Loading branch information
kfrico committed Apr 7, 2020
1 parent ba0ced8 commit 12ac32f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spider.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ func NewSpider() *Spider {
}
}

// GetRestyClient Get RestyClient
func (s *Spider) GetRestyClient() *resty.Client {
return s.restyClient
}

func (s *Spider) SetProxy(url string) {
s.restyClient.SetProxy(url)
}
Expand Down

0 comments on commit 12ac32f

Please sign in to comment.