Documentation
¶
Index ¶
- func DecompressBody(Body []byte, encoding []string, content []string) (parsedBody string)
- func ParseDateString(dt string) (time.Time, error)
- func PrettyStruct(data interface{}) (string, error)
- func StringToSpec(ja3 string, userAgent string) (*utls.ClientHelloSpec, error)
- func WSEndpoint(w nhttp.ResponseWriter, r *nhttp.Request)
- type ContextKeyHeader
- type Cookie
- type CycleTLS
- type Options
- type Response
- type Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecompressBody ¶
DecompressBody unzips compressed data
func ParseDateString ¶
ParseDateString takes a string and passes it through Approxidate Parses into a time.Time
func PrettyStruct ¶
func StringToSpec ¶
func StringToSpec(ja3 string, userAgent string) (*utls.ClientHelloSpec, error)
StringToSpec creates a ClientHelloSpec based on a JA3 string
func WSEndpoint ¶
func WSEndpoint(w nhttp.ResponseWriter, r *nhttp.Request)
Types ¶
type ContextKeyHeader ¶
type ContextKeyHeader struct{}
ContextKeyHeader Users of context.WithValue should define their own types for keys
type Cookie ¶
type Cookie struct {
Name string `json:"name"`
Value string `json:"value"`
Path string `json:"path"` // optional
Domain string `json:"domain"` // optional
Expires time.Time
JSONExpires Time `json:"expires"` // optional
RawExpires string `json:"rawExpires"` // for reading cookies only
// MaxAge=0 means no 'Max-Age' attribute specified.
// MaxAge<0 means delete cookie now, equivalently 'Max-Age: 0'
// MaxAge>0 means Max-Age attribute present and given in seconds
MaxAge int `json:"maxAge"`
Secure bool `json:"secure"`
HTTPOnly bool `json:"httpOnly"`
SameSite http.SameSite `json:"sameSite"`
Raw string
Unparsed []string `json:"unparsed"` // Raw text of unparsed attribute-value pairs
}
A Cookie represents an HTTP cookie as sent in the Set-Cookie header of an HTTP response or the Cookie header of an HTTP request.
See https://tools.ietf.org/html/rfc6265 for details. Stolen from Net/http/cookies
type CycleTLS ¶
type CycleTLS struct {
ReqChan chan fullRequest
RespChan chan Response
}
CycleTLS creates full request and response
type Options ¶
type Options struct {
InsecureSkipVerify bool `json:"insecureSkipVerify"`
URL string `json:"url"`
Method string `json:"method"`
Headers map[string]string `json:"headers"`
Body string `json:"body"`
Ja3 string `json:"ja3"`
UserAgent string `json:"userAgent"`
Proxy string `json:"proxy"`
Timeout int `json:"timeout"`
DisableRedirect bool `json:"disableRedirect"`
CookiesJar *cookiejar.Jar `json:"cookiesJar"`
HeaderOrder []string `json:"headerOrder"`
OrderAsProvided bool `json:"orderAsProvided"` //TODO
}
Options sets CycleTLS client options
Click to show internal directories.
Click to hide internal directories.