Documentation ¶
Index ¶
- Constants
- func DecompressBody(Body []byte, encoding string) (parsedBody string)
- func EnflateData(data []byte) (resData []byte, err error)
- func GUnzipData(data []byte) (resData []byte, err error)
- func UnBrotliData(data []byte) (resData []byte, err error)
- type Cookie
- type HTTP2Settings
- type Header
- type Request
- type Response
- type Server
- type Session
- func (s *Session) ApplyHTTP2Settings(settings []HTTP2Settings) bool
- func (s *Session) ApplyJA3(ja3 string, specifications map[string]interface{}) bool
- func (s *Session) ApplyStreamPriorities(streams []StreamInformation) bool
- func (s *Session) ApplyWindowsUpdate(value int) bool
- func (s *Session) Close() bool
- func (s *Session) Do(request Request) (*Response, error)
- func (s *Session) GetCookies(domain string) ([]Cookie, error)
- func (s *Session) KeepAlive() bool
- func (s *Session) SetCookies(cookies []Cookie) bool
- type Status
- type StreamInformation
Constants ¶
View Source
const ( HeaderTableSize = "HEADER_TABLE_SIZE" EnablePush = "ENABLE_PUSH" MaxConcurrentStreams = "MAX_CONCURRENT_STREAMS" InitialWindowsSize = "INITIAL_WINDOW_SIZE" MaxFrameSize = "MAX_FRAME_SIZE" MaxHeaderListSize = "MAX_HEADER_LIST_SIZE" )
Variables ¶
This section is empty.
Functions ¶
func DecompressBody ¶
DecompressBody unzips compressed data
func EnflateData ¶
func GUnzipData ¶
func UnBrotliData ¶
Types ¶
type HTTP2Settings ¶
type HTTP2Settings struct {
// contains filtered or unexported fields
}
type Request ¶
type Request struct { Method string `json:"method"` Url string `json:"url"` Data string `json:"data"` PHeader []string `json:"pheader"` Header Header `json:"header"` HeaderOrder []string `json:"header-order"` Proxy string `json:"proxy"` AllowRedirect bool `json:"allow-redirect"` Timeout int `json:"timeout"` ServerPush bool `json:"server-push"` Verify bool `json:"verify"` }
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func InitApiRemote ¶
InitApiRemote init api with ip and authorization key
func (*Server) InitSession ¶
InitSession create a new session on the API and return its struct.
type Session ¶
type Session struct { Header Header PHeader []string HeaderOrder []string Cookies map[string]string Timeout int Proxy string // contains filtered or unexported fields }
func (*Session) ApplyHTTP2Settings ¶
func (s *Session) ApplyHTTP2Settings(settings []HTTP2Settings) bool
ApplyHTTP2Settings apply given HTTP2Settings to the current session (only on http2 requests)
func (*Session) ApplyStreamPriorities ¶
func (s *Session) ApplyStreamPriorities(streams []StreamInformation) bool
ApplyStreamPriorities apply given StreamInformation information to the current session (only on http2 requests)
func (*Session) ApplyWindowsUpdate ¶
ApplyWindowsUpdate apply given value to the session's Windows update (only on http2 requests)
func (*Session) GetCookies ¶
GetCookies return cookies from a given domain
func (*Session) SetCookies ¶
SetCookies set cookies into the current session
Click to show internal directories.
Click to hide internal directories.