Documentation ¶
Index ¶
- Constants
- type FakeHeader
- type FakeHeaders
- func (f FakeHeaders) GenerateChrome(platform string) (string, error)
- func (f FakeHeaders) GenerateEdge(platform string) (string, error)
- func (f FakeHeaders) GenerateFirefox(platform string) (string, error)
- func (f *FakeHeaders) RandomAccept() (string, error)
- func (f *FakeHeaders) RandomAcceptEncoding() (string, error)
- func (f *FakeHeaders) RandomAcceptLanguage() (string, error)
- func (f *FakeHeaders) RandomHeaders() (*FakeHeader, error)
- func (f *FakeHeaders) RandomUserAgent() (string, error)
- func (f *FakeHeaders) UpdateAgentsList()
- type FakeHeadersOptions
Constants ¶
View Source
const ( Chrome = "chrome" Firefox = "firefox" Edge = "edge" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeHeader ¶
type FakeHeader struct { UserAgent string Accept string AcceptLanguage string AcceptEncoding string Connection string UpgradeInsecureRequests string SecFetchUser string SecFetchSite string SecFetchMode string SecFetchDest string SecFetchPlatform string SecMobile string SecUA string Te string Browser string }
type FakeHeaders ¶
type FakeHeaders struct { Accepts []string AcceptLanguages []string AcceptEncodings []string Platforms []string ChromeVersions []string FirefoxVersions []string EdgeVersions []string Browser string }
func NewFakeHeaders ¶
func NewFakeHeaders(opts *FakeHeadersOptions) *FakeHeaders
func (FakeHeaders) GenerateChrome ¶ added in v0.3.6
func (f FakeHeaders) GenerateChrome(platform string) (string, error)
func (FakeHeaders) GenerateEdge ¶ added in v0.3.6
func (f FakeHeaders) GenerateEdge(platform string) (string, error)
func (FakeHeaders) GenerateFirefox ¶ added in v0.3.6
func (f FakeHeaders) GenerateFirefox(platform string) (string, error)
func (*FakeHeaders) RandomAccept ¶
func (f *FakeHeaders) RandomAccept() (string, error)
func (*FakeHeaders) RandomAcceptEncoding ¶
func (f *FakeHeaders) RandomAcceptEncoding() (string, error)
func (*FakeHeaders) RandomAcceptLanguage ¶
func (f *FakeHeaders) RandomAcceptLanguage() (string, error)
func (*FakeHeaders) RandomHeaders ¶
func (f *FakeHeaders) RandomHeaders() (*FakeHeader, error)
func (*FakeHeaders) RandomUserAgent ¶
func (f *FakeHeaders) RandomUserAgent() (string, error)
func (*FakeHeaders) UpdateAgentsList ¶
func (f *FakeHeaders) UpdateAgentsList()
Click to show internal directories.
Click to hide internal directories.