github.com/HXSecurity/DongTai-agent-go@v0.4.2/core/http/urlURLQuery/replacement.go (about)

     1  package urlURLQuery
     2  
     3  import (
     4  	"github.com/HXSecurity/DongTai-agent-go/model/request"
     5  	"net/url"
     6  )
     7  
     8  func Query(URL *url.URL) url.Values {
     9  	values := QueryT(URL)
    10  	request.FmtHookPool(request.PoolReq{
    11  		Args:            request.Collect(),
    12  		Reqs:            request.Collect(values),
    13  		Source:          true,
    14  		OriginClassName: "url.(*URL)",
    15  		MethodName:      "Query",
    16  		ClassName:       "url.(*URL)",
    17  	})
    18  	return values
    19  }
    20  
    21  func QueryT(URL *url.URL) url.Values {
    22  	return url.Values{}
    23  }