Documentation
¶
Index ¶
- func IsBoolFlag(v Value) bool
- type Addr
- type AddrList
- type Binary
- type Bool
- type Bytes
- type Certificate
- type CertificateKey
- type CipherList
- type Connect
- type Dir
- type File
- type FileRange
- type HeaderField
- type HostPort
- type Method
- type Milliseconds
- type Name
- type NetworkInterface
- type Number
- type Offset
- type Option
- func AbstractUnixSocket(path string) Option
- func AltSvc(path string) Option
- func Anyauth(on bool) Option
- func Append(on bool) Option
- func Basic(on bool) Option
- func CACert(path string) Option
- func CAPath(path string) Option
- func CRLF(on bool) Option
- func CRLFile(path string) Option
- func Cert(cert string) Option
- func CertStatus(on bool) Option
- func CertType(typ string) Option
- func Ciphers(ciphers ...string) Option
- func Compressed(on bool) Option
- func CompressedSSH(on bool) Option
- func Config(path string) Option
- func ConnectTimeout(timeout time.Duration) Option
- func ConnectTo(addr string) Option
- func ContinueAt(offset int64) Option
- func Cookie(dataOrFile string) Option
- func CookieJar(path string) Option
- func CreateDirs(on bool) Option
- func DNSIPv4Addr(addr string) Option
- func DNSIPv6Addr(addr string) Option
- func DNSInterface(iface string) Option
- func DNSServers(addrs ...string) Option
- func Data(data []byte) Option
- func DataASCII(data []byte) Option
- func DataBinary(data []byte) Option
- func DataRaw(data []byte) Option
- func DataUrlencode(data []byte) Option
- func Delegation(level string) Option
- func Digest(on bool) Option
- func Disable(on bool) Option
- func DisableEPSV(on bool) Option
- func DisallowUsernameInURL(on bool) Option
- func DoHURL(url string) Option
- func DumpHeader(path string) Option
- func EGDFile(path string) Option
- func Engine(name string) Option
- func Expect100Timeout(timeout time.Duration) Option
- func FTPAccount(data []byte) Option
- func FTPAlternativeToUser(command string) Option
- func FTPCreateDirs(on bool) Option
- func FTPMethod(method string) Option
- func FTPPasv(on bool) Option
- func FTPPort(addr string) Option
- func FTPPret(on bool) Option
- func FTPSSLCCC(on bool) Option
- func FTPSSLCCCMode(mode string) Option
- func FTPSkipPasvIP(on bool) Option
- func Fail(on bool) Option
- func FailEarly(on bool) Option
- func Form(form string) Option
- func FormString(form string) Option
- func Get(on bool) Option
- func Globoff(on bool) Option
- func HAProxyProtocol(on bool) Option
- func HTTP09(on bool) Option
- func HTTP11(on bool) Option
- func HTTP2(on bool) Option
- func HTTP2PriorKnowledge(on bool) Option
- func HappyEyeballsTimeout(timeout time.Duration) Option
- func Head(on bool) Option
- func Header(header string) Option
- func Hostpubmd5(md5 string) Option
- func IPv4(on bool) Option
- func IPv6(on bool) Option
- func IgnoreContentLength(on bool) Option
- func Include(on bool) Option
- func Insecure(on bool) Option
- func Interface(iface string) Option
- func JunkSessionCookies(on bool) Option
- func KRB(level string) Option
- func KeepaliveTime(keepalive time.Duration) Option
- func Key(key string) Option
- func KeyType(typ string) Option
- func Libcurl(path string) Option
- func LimitRate(speed string) Option
- func ListOnly(on bool) Option
- func LocalPort(numberOrRange string) Option
- func Location(on bool) Option
- func LoginOptions(options string) Option
- func MailAuth(addr string) Option
- func MailFrom(addr string) Option
- func MailRcpt(addr string) Option
- func Manual(on bool) Option
- func MaxFilesize(bytes int64) Option
- func MaxRedirs(num int) Option
- func MaxTime(max time.Duration) Option
- func Metalink(on bool) Option
- func NTLM(on bool) Option
- func NTLMWB(on bool) Option
- func Negotiate(on bool) Option
- func Netrc(on bool) Option
- func NetrcFile(path string) Option
- func NetrcOptional(on bool) Option
- func Next(on bool) Option
- func NoALPN(on bool) Option
- func NoBuffer(on bool) Option
- func NoKeepalive(on bool) Option
- func NoNPN(on bool) Option
- func NoProxy(addrs ...string) Option
- func NoSessionID(on bool) Option
- func OAuth2Bearer(token string) Option
- func Output(path string) Option
- func Pass(phrase string) Option
- func PathAsIs(on bool) Option
- func PinnedPubKey(path string) Option
- func Post301(on bool) Option
- func Post302(on bool) Option
- func Post303(on bool) Option
- func Preproxy(url string) Option
- func ProgressBar(on bool) Option
- func Proto(protocols ...string) Option
- func ProtoDefault(protocol string) Option
- func ProtoRedir(protocols ...string) Option
- func Proxy(addr string) Option
- func Proxy10(hostPort string) Option
- func ProxyAnyauth(on bool) Option
- func ProxyBasic(on bool) Option
- func ProxyCACert(path string) Option
- func ProxyCRLFile(path string) Option
- func ProxyCert(cert string) Option
- func ProxyCertType(typ string) Option
- func ProxyCiphers(ciphers ...string) Option
- func ProxyDiget(on bool) Option
- func ProxyHeader(header string) Option
- func ProxyInsecure(on bool) Option
- func ProxyKey(key string) Option
- func ProxyKeyType(typ string) Option
- func ProxyNTLM(on bool) Option
- func ProxyNegotiate(on bool) Option
- func ProxyPass(phrase string) Option
- func ProxyPinnedpubkey(path string) Option
- func ProxySSLAllowBeast(on bool) Option
- func ProxyServiceName(name string) Option
- func ProxyTLS13Ciphers(ciphers ...string) Option
- func ProxyTLSAuthType(typ string) Option
- func ProxyTLSPassword(password string) Option
- func ProxyTLSUser(user string) Option
- func ProxyTLSv1(on bool) Option
- func ProxyTunnel(on bool) Option
- func ProxyUser(user string) Option
- func Pubkey(key string) Option
- func Quote(on bool) Option
- func RandomFile(path string) Option
- func Range(r string) Option
- func Raw(on bool) Option
- func Referer(url string) Option
- func RemoteHeaderName(on bool) Option
- func RemoteName(on bool) Option
- func RemoteNameAll(on bool) Option
- func RemoteTime(on bool) Option
- func Request(method string) Option
- func RequestTarget(on bool) Option
- func Resolve(resolve ...string) Option
- func Retry(limit int) Option
- func RetryConnrefused(on bool) Option
- func RetryDelay(delay time.Duration) Option
- func RetryMaxTime(limit time.Duration) Option
- func SASLIR(on bool) Option
- func SOCKS4(hostPort string) Option
- func SOCKS4a(hostPort string) Option
- func SOCKS5(hostPort string) Option
- func SOCKS5Basic(on bool) Option
- func SOCKS5GssAPI(on bool) Option
- func SOCKS5GssAPIService(name string) Option
- func SOCKS5Hostname(hostPort string) Option
- func SSL(on bool) Option
- func SSLAllowBeast(on bool) Option
- func SSLNoRevoke(on bool) Option
- func SSLReqd(on bool) Option
- func SSLv2(on bool) Option
- func SSLv3(on bool) Option
- func ServiceName(name string) Option
- func ShowError(on bool) Option
- func Silent(on bool) Option
- func SpeedLimit(speed string) Option
- func SpeedTime(speed time.Duration) Option
- func Stderr(on bool) Option
- func StyledOutput(on bool) Option
- func SuppressConnectHeaders(on bool) Option
- func TCPFastOpen(on bool) Option
- func TCPNoDelay(on bool) Option
- func TFTPBlkSize(size int) Option
- func TFTPNoOptions(on bool) Option
- func TLS13Ciphers(ciphers ...string) Option
- func TLSAuthType(typ string) Option
- func TLSMax(version string) Option
- func TLSPassword(on bool) Option
- func TLSUser(user string) Option
- func TLSv10(on bool) Option
- func TLSv11(on bool) Option
- func TLSv12(on bool) Option
- func TLSv13(on bool) Option
- func TSLv1(on bool) Option
- func TelnetOption(opt string) Option
- func TimeCond(date string) Option
- func TrEncoding(on bool) Option
- func Trace(path string) Option
- func TraceASCII(path string) Option
- func TraceTime(on bool) Option
- func UnixSocket(path string) Option
- func UploadFile(path string) Option
- func Url(url string) Option
- func UseASCII(on bool) Option
- func User(userPassword string) Option
- func UserAgent(userAgent string) Option
- func Verbose(on bool) Option
- func Version(on bool) Option
- func WriteOut(format string) Option
- func XAttr(on bool) Option
- type OptionSet
- type Port
- type Protocol
- type ProtocolList
- type ProxyAddr
- type Seconds
- type Speed
- type String
- type Token
- type Type
- type URL
- type UserPassword
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsBoolFlag ¶ added in v0.1.4
func IsBoolFlag(v Value) bool
Types ¶
type AddrList ¶
type AddrList []string
func NewAddrList ¶
func NewAddrList(value []string) *AddrList
type Certificate ¶
type Certificate string
func NewCertificate ¶
func NewCertificate(value string) *Certificate
type CertificateKey ¶
type CertificateKey string
func NewCertificateKey ¶
func NewCertificateKey(value string) *CertificateKey
type CipherList ¶
type CipherList []string
func NewCipherList ¶
func NewCipherList(value []string) *CipherList
type FileRange ¶
type FileRange string
func NewFileRange ¶
func NewFileRange(value string) *FileRange
type HeaderField ¶
type HeaderField string
func NewHeaderField ¶
func NewHeaderField(value string) *HeaderField
type Milliseconds ¶
type Milliseconds int64
func NewMilliseconds ¶
func NewMilliseconds(value time.Duration) *Milliseconds
type NetworkInterface ¶
type NetworkInterface string
func NewNetworkInterface ¶
func NewNetworkInterface(value string) *NetworkInterface
type Option ¶
type Option struct {
Name string
Help string
Short string
Value Value
}
func AbstractUnixSocket ¶
func AbstractUnixSocket(path string) Option
func CertStatus ¶
func CertStatus(on bool) Option
func Compressed ¶
func Compressed(on bool) Option
func CompressedSSH ¶
func CompressedSSH(on bool) Option
func ConnectTimeout ¶
func ConnectTimeout(timeout time.Duration) Option
func ContinueAt ¶
func ContinueAt(offset int64) Option
func CreateDirs ¶
func CreateDirs(on bool) Option
func DNSIPv4Addr ¶
func DNSIPv4Addr(addr string) Option
func DNSIPv6Addr ¶
func DNSIPv6Addr(addr string) Option
func DNSInterface ¶
func DNSInterface(iface string) Option
func DNSServers ¶
func DNSServers(addrs ...string) Option
func DataBinary ¶
func DataBinary(data []byte) Option
func DataUrlencode ¶
func DataUrlencode(data []byte) Option
func Delegation ¶
func Delegation(level string) Option
func DisableEPSV ¶
func DisableEPSV(on bool) Option
func DisallowUsernameInURL ¶
func DisallowUsernameInURL(on bool) Option
func DumpHeader ¶
func DumpHeader(path string) Option
func Expect100Timeout ¶
func Expect100Timeout(timeout time.Duration) Option
func FTPAccount ¶
func FTPAccount(data []byte) Option
func FTPAlternativeToUser ¶
func FTPAlternativeToUser(command string) Option
func FTPCreateDirs ¶
func FTPCreateDirs(on bool) Option
func FTPSSLCCCMode ¶
func FTPSSLCCCMode(mode string) Option
func FTPSkipPasvIP ¶
func FTPSkipPasvIP(on bool) Option
func FormString ¶
func FormString(form string) Option
func HAProxyProtocol ¶
func HAProxyProtocol(on bool) Option
func HTTP2PriorKnowledge ¶
func HTTP2PriorKnowledge(on bool) Option
func HappyEyeballsTimeout ¶
func HappyEyeballsTimeout(timeout time.Duration) Option
func Hostpubmd5 ¶
func Hostpubmd5(md5 string) Option
func IgnoreContentLength ¶
func IgnoreContentLength(on bool) Option
func JunkSessionCookies ¶
func JunkSessionCookies(on bool) Option
func KeepaliveTime ¶
func KeepaliveTime(keepalive time.Duration) Option
func LoginOptions ¶
func LoginOptions(options string) Option
func MaxFilesize ¶
func MaxFilesize(bytes int64) Option
func NetrcOptional ¶
func NetrcOptional(on bool) Option
func NoKeepalive ¶
func NoKeepalive(on bool) Option
func NoSessionID ¶
func NoSessionID(on bool) Option
func OAuth2Bearer ¶
func OAuth2Bearer(token string) Option
func PinnedPubKey ¶
func PinnedPubKey(path string) Option
func ProgressBar ¶
func ProgressBar(on bool) Option
func ProtoDefault ¶
func ProtoDefault(protocol string) Option
func ProtoRedir ¶
func ProtoRedir(protocols ...string) Option
func ProxyAnyauth ¶
func ProxyAnyauth(on bool) Option
func ProxyBasic ¶
func ProxyBasic(on bool) Option
func ProxyCACert ¶
func ProxyCACert(path string) Option
func ProxyCRLFile ¶
func ProxyCRLFile(path string) Option
func ProxyCertType ¶
func ProxyCertType(typ string) Option
func ProxyCiphers ¶
func ProxyCiphers(ciphers ...string) Option
func ProxyDiget ¶
func ProxyDiget(on bool) Option
func ProxyHeader ¶
func ProxyHeader(header string) Option
func ProxyInsecure ¶
func ProxyInsecure(on bool) Option
func ProxyKeyType ¶
func ProxyKeyType(typ string) Option
func ProxyNegotiate ¶
func ProxyNegotiate(on bool) Option
func ProxyPinnedpubkey ¶
func ProxyPinnedpubkey(path string) Option
func ProxySSLAllowBeast ¶
func ProxySSLAllowBeast(on bool) Option
func ProxyServiceName ¶
func ProxyServiceName(name string) Option
func ProxyTLS13Ciphers ¶
func ProxyTLS13Ciphers(ciphers ...string) Option
func ProxyTLSAuthType ¶
func ProxyTLSAuthType(typ string) Option
func ProxyTLSPassword ¶
func ProxyTLSPassword(password string) Option
func ProxyTLSUser ¶
func ProxyTLSUser(user string) Option
func ProxyTLSv1 ¶
func ProxyTLSv1(on bool) Option
func ProxyTunnel ¶
func ProxyTunnel(on bool) Option
func RandomFile ¶
func RandomFile(path string) Option
func RemoteHeaderName ¶
func RemoteHeaderName(on bool) Option
func RemoteName ¶
func RemoteName(on bool) Option
func RemoteNameAll ¶
func RemoteNameAll(on bool) Option
func RemoteTime ¶
func RemoteTime(on bool) Option
func RequestTarget ¶
func RequestTarget(on bool) Option
func RetryConnrefused ¶
func RetryConnrefused(on bool) Option
func RetryDelay ¶
func RetryDelay(delay time.Duration) Option
func RetryMaxTime ¶
func RetryMaxTime(limit time.Duration) Option
func SOCKS5Basic ¶
func SOCKS5Basic(on bool) Option
func SOCKS5GssAPI ¶
func SOCKS5GssAPI(on bool) Option
func SOCKS5GssAPIService ¶
func SOCKS5GssAPIService(name string) Option
func SOCKS5Hostname ¶
func SOCKS5Hostname(hostPort string) Option
func SSLAllowBeast ¶
func SSLAllowBeast(on bool) Option
func SSLNoRevoke ¶
func SSLNoRevoke(on bool) Option
func ServiceName ¶
func ServiceName(name string) Option
func SpeedLimit ¶
func SpeedLimit(speed string) Option
func StyledOutput ¶
func StyledOutput(on bool) Option
func SuppressConnectHeaders ¶
func SuppressConnectHeaders(on bool) Option
func TCPFastOpen ¶
func TCPFastOpen(on bool) Option
func TCPNoDelay ¶
func TCPNoDelay(on bool) Option
func TFTPBlkSize ¶
func TFTPBlkSize(size int) Option
func TFTPNoOptions ¶
func TFTPNoOptions(on bool) Option
func TLS13Ciphers ¶
func TLS13Ciphers(ciphers ...string) Option
func TLSAuthType ¶
func TLSAuthType(typ string) Option
func TLSPassword ¶
func TLSPassword(on bool) Option
func TelnetOption ¶
func TelnetOption(opt string) Option
func TrEncoding ¶
func TrEncoding(on bool) Option
func TraceASCII ¶
func TraceASCII(path string) Option
func UnixSocket ¶
func UnixSocket(path string) Option
func UploadFile ¶
func UploadFile(path string) Option
type ProtocolList ¶
type ProtocolList []string
func NewProtocolList ¶
func NewProtocolList(value []string) *ProtocolList
type ProxyAddr ¶
type ProxyAddr string
func NewProxyAddr ¶
func NewProxyAddr(value string) *ProxyAddr
type UserPassword ¶
type UserPassword string
func NewUserPassword ¶
func NewUserPassword(value string) *UserPassword
Click to show internal directories.
Click to hide internal directories.