Documentation
¶
Index ¶
- func AcquireProtoRequestPool() *proto.Request
- func AcquireProtoResponsePool() *proto.Response
- func CopyRequest(req *http.Request, dstRequest *fasthttp.Request, data []byte)
- func DealMultipart(contentType string, ruleBody string) (result string, err error)
- func New(options *config.Options) *fasthttp.Client
- func ParseRequest(oReq *http.Request) (*proto.Request, error)
- func ReleaseProtoRequestPool(req *proto.Request)
- func ReleaseProtoResponsePool(rsp *proto.Response)
- func Url2UrlType(u *url.URL) *proto.UrlType
- type FastClient
- func (fc *FastClient) AssignVariableMap(find string, variableMap map[string]interface{}) string
- func (fc *FastClient) HTTPRequest(httpRequest *http.Request, rule poc.Rule, variableMap map[string]interface{}) error
- func (fc *FastClient) SampleHTTPRequest(httpRequest *http.Request) (*proto.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcquireProtoRequestPool ¶
func DealMultipart ¶
func New ¶
fasthttp initialization configuration proxy、readtimeout、writetimeout、max_idle、concurrency、max_responsebody_sizse、max_redirect_count eg.
func ReleaseProtoRequestPool ¶
Types ¶
type FastClient ¶
func (*FastClient) AssignVariableMap ¶
func (fc *FastClient) AssignVariableMap(find string, variableMap map[string]interface{}) string
替换变量的值 find string 规定要查找的值 oldstr 规定被搜索的字符串 newstr 规定替换的值
func (*FastClient) HTTPRequest ¶
func (*FastClient) SampleHTTPRequest ¶
reverse http request
Click to show internal directories.
Click to hide internal directories.