Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorURINull = errors.New("getCurlCommand: invalid request, req.URL is nil")
Functions ¶
This section is empty.
Types ¶
type CurlCommand ¶
type CurlCommand []string
CurlCommand contains exec.Command compatible slice + helpers
func GetCurlCommand ¶ added in v0.1.1
func GetCurlCommand(req *http.Request) (*CurlCommand, error)
GetCurlCommand returns a CurlCommand corresponding to an http.Request
func GetCurlCommandFastHttp ¶
func GetCurlCommandFastHttp(req *fasthttp.Request) (*CurlCommand, error)
GetCurlCommandFastHttp returns a CurlCommand corresponding to an fasthttp.Request
func GetCurlCommandHertz ¶
func GetCurlCommandHertz(req *protocol.Request) (*CurlCommand, error)
GetCurlCommandHertz returns a CurlCommand corresponding to an protocol.Request
func GetCurlCommandResty ¶ added in v0.1.2
func GetCurlCommandResty(req *resty.Request) (*CurlCommand, error)
func (*CurlCommand) String ¶
func (c *CurlCommand) String() string
String returns a ready to copy/paste command
Source Files ¶
Click to show internal directories.
Click to hide internal directories.