Versions in this module Expand all Collapse all v1 v1.3.0 Aug 27, 2024 Changes in this version + func BuildH2SettingsFromString(settingsStr string) (*http2.HTTP2Settings, error) + func DecompressBody(Body []byte, encoding []string, content []string) (parsedBody string) + func NewTransport(ja3 string, useragent string) http.RoundTripper + func NewTransportWithProxy(ja3 string, useragent string, proxy proxy.ContextDialer) http.RoundTripper + func ParseDateString(dt string) (time.Time, error) + func PrettyStruct(data interface{}) (string, error) + func StringToSpec(ja3 string, userAgent string, forceHTTP1 bool) (*utls.ClientHelloSpec, error) + func WSEndpoint(w nhttp.ResponseWriter, r *nhttp.Request) + type Browser struct + Cookies []Cookie + H2Settings string + InsecureSkipVerify bool + JA3 string + UserAgent string + type ContextKeyHeader struct + type Cookie struct + Domain string + Expires time.Time + HTTPOnly bool + JSONExpires Time + MaxAge int + Name string + Path string + Raw string + RawExpires string + SameSite nhttp.SameSite + Secure bool + Unparsed []string + Value string + type CycleTLS struct + ReqChan chan fullRequest + RespChan chan Response + func Init(workers ...bool) CycleTLS + func (client CycleTLS) Close() + func (client CycleTLS) Do(URL string, options Options, Method string) (response Response, err error) + func (client CycleTLS) Queue(URL string, options Options, Method string) + type Extensions struct + CertCompressionAlgo []string + DelegatedCredentials []string + KeyShareCurves []string + PSKKeyExchangeModes []string + RecordSizeLimit int + SignatureAlgorithmsCert []string + SupportedSignatureAlgorithms []string + SupportedVersions []string + UseGREASE bool + type Options struct + Body string + Cookies []Cookie + DisableRedirect bool + ForceHTTP1 bool + H2Settings string + HeaderOrder []string + Headers map[string]string + InsecureSkipVerify bool + Ja3 string + Method string + OrderAsProvided bool + Proxy string + PseudoHeaderOrder []string + SplitCookies bool + Timeout int + URL string + UserAgent string + type Response struct + Body string + Cookies []*nhttp.Cookie + FinalUrl string + Headers map[string]string + RequestID string + Status int + func (re Response) JSONBody() map[string]interface{} + type SocksDialer struct + func (d *SocksDialer) Dial(network, addr string) (net.Conn, error) + func (d *SocksDialer) DialContext(_ context.Context, network, addr string) (net.Conn, error) + type TLSExtensions struct + CertCompressionAlgo *utls.UtlsCompressCertExtension + DelegatedCredentials *utls.DelegatedCredentialsExtension + KeyShareCurves *utls.KeyShareExtension + PSKKeyExchangeModes *utls.PSKKeyExchangeModesExtension + RecordSizeLimit *utls.FakeRecordSizeLimitExtension + SignatureAlgorithmsCert *utls.SignatureAlgorithmsCertExtension + SupportedSignatureAlgorithms *utls.SignatureAlgorithmsExtension + SupportedVersions *utls.SupportedVersionsExtension + UseGREASE bool + func ToTLSExtensions(e *Extensions) (extensions *TLSExtensions) + type Time struct + func (t *Time) UnmarshalJSON(buf []byte) error + type UserAgent struct + HeaderOrder []string + UserAgent string