Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CurlCommand ¶
type CurlCommand []string
CurlCommand contains exec.Command compatible slice + helpers
func GetCurlCommand ¶
func GetCurlCommand(req *http.Request) (command *CurlCommand, err error)
GetCurlCommand returns a CurlCommand corresponding to an http.Request
func GetCurlCommandFastHttp ¶
func GetCurlCommandFastHttp(req *fasthttp.Request) (command *CurlCommand, err error)
convert a fast http request object to a curl command
func (*CurlCommand) Append ¶
func (command *CurlCommand) Append(newSlice ...string)
Append appends a string to the CurlCommand
func (*CurlCommand) String ¶
func (command *CurlCommand) String() string
String returns a ready to copy/paste command
Click to show internal directories.
Click to hide internal directories.