调整封装的方法

This commit is contained in:
Yun
2025-12-28 15:14:05 +08:00
parent 8bca4cc013
commit 0931539e1c
6 changed files with 151 additions and 153 deletions
+17
View File
@@ -0,0 +1,17 @@
package curlx
import "errors"
type UserAgent string
const (
UserAgentChrome UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 "
UserAgentFirefox UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 "
UserAgentIE UserAgent = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0; "
UserAgentEdge UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 "
UserAgentWechat UserAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 "
)
var (
ErrStatusNotOK error = errors.New("Status not ok")
)