Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BoolOptions = map[string]bool{}/* 226 elements not displayed */
View Source
var OptionAliases = map[string]string{
"0": "http1.0",
"1": "tlsv1",
"2": "sslv2",
"3": "sslv3",
"4": "ipv4",
"6": "ipv6",
"a": "append",
"A": "user-agent",
"b": "cookie",
"B": "use-ascii",
"c": "cookie-jar",
"C": "continue-at",
"d": "data",
"D": "dump-header",
"e": "referer",
"E": "cert",
"f": "fail",
"F": "form",
"g": "globoff",
"G": "get",
"h": "help",
"H": "header",
"i": "include",
"I": "head",
"j": "junk-session-cookies",
"J": "remote-header-name",
"k": "insecure",
"K": "config",
"l": "list-only",
"L": "location",
"m": "max-time",
"M": "manual",
"n": "netrc",
"N": "no-buffer",
"o": "output",
"O": "remote-name",
"p": "proxytunnel",
"P": "ftp-port",
"q": "disable",
"Q": "quote",
"r": "range",
"R": "remote-time",
"s": "silent",
"S": "show-error",
"t": "telnet-option",
"T": "upload-file",
"u": "user",
"U": "proxy-user",
"v": "verbose",
"V": "version",
"w": "write-out",
"x": "proxy",
"X": "request",
"Y": "speed-limit",
"y": "speed-time",
"z": "time-cond",
"Z": "parallel",
"#": "progress-bar",
":": "next",
}
Functions ¶
func ParseHeaders ¶
Types ¶
type ParsedFlags ¶
type ParsedFlags struct { UnFlags []string BoolFlags map[string]bool StringsFlags map[string][]string }
func FlagParse ¶
func FlagParse(input string) ParsedFlags
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func NewParserWithOptions ¶
func NewParserWithOptions(options ParserOptions) *Parser
func (*Parser) FlagParse ¶
func (p *Parser) FlagParse(input string) ParsedFlags
type Relevant ¶
type Relevant struct { URL string Method string Headers map[string]string Data RelevantData DataType string Insecure bool BasicAuth *BasicAuth Host string Proxy *Proxy }
Relevant is some of the parameters related to constructing a Go request
func ExtractRelevant ¶
func ExtractRelevant(flags ParsedFlags) (*Relevant, error)
ExtractRelevant parse and extract the relevant parameters from map to a struct
type RelevantData ¶
Click to show internal directories.
Click to hide internal directories.