curlgen

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultCurlOutputSeparator = "@NV@"

Variables

This section is empty.

Functions

func GenerateString

func GenerateString(cfg *Options) (string, error)

GenerateString function will be used to transform the Configurations (options) used to build the Options struct and build a full Curl command and return it as a string

Types

type Options

type Options struct {
	CaPath          string
	ProxyCaPath     string
	Retry           int
	MaxTime         string
	NoTls           string
	Urls            string
	TlsDisabledUrls string
}

Options struct contains flag options that will be used to build the curl command. Every Option directly maps to a flag that can be used to configure your curl command.

func (*Options) NoTLS

func (o *Options) NoTLS() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL