Documentation ¶
Index ¶
- Variables
- func AcquireProtoRequestPool() *proto.Request
- func AcquireProtoResponsePool() *proto.Response
- func CheckLive(target string) string
- func CopyRequest(req *http.Request, dstRequest *fasthttp.Request, data []byte)
- func DealMultipart(contentType string, ruleBody string) (result string, err error)
- func GetFingerprintRedirect(httpRequest *http.Request) ([]byte, map[string][]string, int, error)
- func GetTimeout(target string, timeout int) ([]byte, int, error)
- func GetTitleRedirect(httpRequest *http.Request, redirect int) ([]byte, int, error)
- func Gopochttp(httpRequest *http.Request, redirects int) ([]byte, []byte, []byte, int, *proto.UrlType, error)
- func Init(options *config.Options)
- func IsFullHttpFormat(target string) bool
- func ParseRequest(oReq *http.Request) (*proto.Request, error)
- func ReleaseProtoRequestPool(req *proto.Request)
- func ReleaseProtoResponsePool(rsp *proto.Response)
- func ReverseHttpRequest(httpRequest *http.Request) ([]byte, error)
- func Url2UrlType(u *url.URL) *proto.UrlType
- type FastClient
- func (fc *FastClient) AssignVariableMap(find string, variableMap map[string]any) string
- func (fc *FastClient) HTTPRequest(httpRequest *http.Request, rule poc.Rule, variableMap map[string]any) error
- func (fc *FastClient) HTTPRequest2(httpRequest *http.Request, rule poc.Rule, variableMap map[string]any) error
- func (fc *FastClient) Reset()
- func (fc *FastClient) SampleHTTPRequest(httpRequest *http.Request) (*proto.Response, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
F = &fasthttp.Client{}
)
Functions ¶
func AcquireProtoRequestPool ¶
func CheckLive ¶ added in v1.3.6
target is not alive if return value is none http(s) else is alive. @date 2022.7.22
func DealMultipart ¶
func GetFingerprintRedirect ¶ added in v1.3.2
func GetTitleRedirect ¶ added in v1.3.0
func IsFullHttpFormat ¶ added in v1.3.6
func ReleaseProtoRequestPool ¶
func ReverseHttpRequest ¶ added in v1.3.0
Types ¶
type FastClient ¶
func (*FastClient) AssignVariableMap ¶
func (fc *FastClient) AssignVariableMap(find string, variableMap map[string]any) string
func (*FastClient) HTTPRequest ¶
func (*FastClient) HTTPRequest2 ¶ added in v1.2.3
func (*FastClient) Reset ¶ added in v1.1.0
func (fc *FastClient) Reset()
func (*FastClient) SampleHTTPRequest ¶
reverse http request
Click to show internal directories.
Click to hide internal directories.