Initial 423down proxy service
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package main
|
||||
|
||||
import "resty.dev/v3"
|
||||
|
||||
// newHTTPClient 创建访问源站用的 HTTP 客户端。
|
||||
func newHTTPClient() *resty.Client {
|
||||
return resty.New().SetHeaders(map[string]string{
|
||||
"User-Agent": defaultUserAgent,
|
||||
}).SetRetryCount(3)
|
||||
}
|
||||
Reference in New Issue
Block a user