Versions in this module Expand all Collapse all v0 v0.0.2 Jan 20, 2023 v0.0.1 Jan 18, 2023 Changes in this version + func Execute(command []string) ([]byte, error) + func ExecuteWithContext(ctx context.Context, command []string) ([]byte, error) + func GetCommand(req *http.Request, inscure bool) ([]string, string, func() error, error) + func GetResponse(buf []byte) (*http.Response, error) + type CurlRequest interface + AddHeader func(key, value string) error + Do func() (*http.Response, error) + Execute func() ([]byte, error) + GenerateCommand func(inscure bool) error + GetCommands func() []string + GetFilename func() string + GetHeader func(key string) []string + GetHeaders func() http.Header + SetCA func(filePath string) + SetCertificate func(fileType filetype.FileType, path, password string) + SetPrivateKey func(fileType filetype.FileType, path string) + func NewCurlRequest(req *http.Request) (CurlRequest, error) + func NewCurlRequestWithContext(ctx context.Context, req *http.Request) (CurlRequest, error)