/
struct.go
46 lines (39 loc) · 829 Bytes
/
struct.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package cleanhttp
import (
"io"
fp "github.com/IIayk122/cloudflare-reverse/pkg/fpclient"
http "github.com/bogdanfinn/fhttp"
tls_client "github.com/bogdanfinn/tls-client"
)
type CleanHTTP struct {
Config *Config
TLSClient tls_client.HttpClient
Cookies []*http.Cookie
}
type Config struct {
Proxy string
Timeout int
BrowserFp *fp.Fingerprint
TLSFp *fp.TLSFingerprint
Profile tls_client.ClientProfile
}
type RequestOption struct {
Method string
Body io.Reader
URL string
Header http.Header
}
type UserAgentInfo struct {
BrowserName string
BrowserVersion string
OSName string
OSVersion string
UaVersion string
}
type HeaderBuilder struct {
SecChUa string
SecChUaPlatform string
secChUaMobile string
AcceptLanguage string
Cookies string
}