Documentation ¶
Index ¶
- type AwsSignInfo
- type Generator
- func (g *Generator) CloseIdleConnections()
- func (g *Generator) CreateFormMultiPart(formFields map[string][]string) (body, boundary string, err error)
- func (g *Generator) CreateFormUrlEncoded(formFields map[string][]string) (string, error)
- func (g *Generator) Do(method string, Url string, headers map[string]string, body string) (*http.Response, error)
- func (g *Generator) DoFormMultipart(method string, Url string, headers map[string]string, ...) (*http.Response, error)
- func (g *Generator) DoFormUrl(method string, Url string, headers map[string]string, ...) (*http.Response, error)
- func (g *Generator) Finish() error
- func (g *Generator) GetCookies(url string) ([]*http.Cookie, error)
- func (g *Generator) Init() error
- func (g *Generator) InitDone() error
- func (g *Generator) SetTlsServerName(n string)
- func (g *Generator) Tick() error
- type GeneratorOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AwsSignInfo ¶
type Generator ¶
func NewGenerator ¶
func (*Generator) CloseIdleConnections ¶
func (g *Generator) CloseIdleConnections()
func (*Generator) CreateFormMultiPart ¶
func (g *Generator) CreateFormMultiPart(formFields map[string][]string) (body, boundary string, err error)
Multi-part form
func (*Generator) CreateFormUrlEncoded ¶
Url encoded form
func (*Generator) DoFormMultipart ¶
func (*Generator) SetTlsServerName ¶
type GeneratorOptions ¶
type GeneratorOptions struct { Url url.URL Data string DiscardResponse bool StreamResponse bool KeepAlive bool Method string Headers map[string]string ProxyHeaders map[string]string Insecure bool AggregateMethodPath map[string]map[*regexp.Regexp]string TlsServerName string RootCAs []string DisableCompression bool DisableCookieJar bool AwsSign bool AwsSignInfo AwsSignInfo }
func NewOptions ¶
func NewOptions() *GeneratorOptions
Click to show internal directories.
Click to hide internal directories.