Documentation ¶
Index ¶
- type HttpRequest
- func (r *HttpRequest) Dump()
- func (r *HttpRequest) Get(url string, headers map[string]string) ([]byte, int, error)
- func (r *HttpRequest) PostMultipart(url string, headers map[string]string, multipart_params map[string]string) ([]byte, int, error)
- func (r *HttpRequest) PostUrlEncoded(url string, headers map[string]string, data url.Values) ([]byte, int, error)
- func (r *HttpRequest) Put(url string, headers map[string]string, data string) ([]byte, int, error)
- func (r *HttpRequest) UseBasicAuth(flag bool)
- func (r *HttpRequest) UseProxy(flag bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpRequest ¶
type HttpRequest struct { Transport *httpclient.Transport Client *http.Client ProxyFlag bool BasicAuthFlag bool Username string Password string ProxyUrl string }
func NewWithDefaults ¶
func NewWithDefaults() *HttpRequest
func (*HttpRequest) Dump ¶
func (r *HttpRequest) Dump()
func (*HttpRequest) PostMultipart ¶
func (*HttpRequest) PostUrlEncoded ¶
func (*HttpRequest) UseBasicAuth ¶
func (r *HttpRequest) UseBasicAuth(flag bool)
func (*HttpRequest) UseProxy ¶
func (r *HttpRequest) UseProxy(flag bool)
Click to show internal directories.
Click to hide internal directories.