调整封装的方法
This commit is contained in:
@@ -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")
|
||||
)
|
||||
Reference in New Issue
Block a user