Versions in this module Expand all Collapse all v0 v0.0.1 Mar 13, 2024 Changes in this version + const HdrKeyContentType + const HdrKeyUserAgent + const HdrValApplicationJson + const Timeout + var Default = &http.Client + var ErrRequest = errors.New("http request error") + func DefaultUserAgent() string + func Get(url string) (*http.Response, error) + func Post(url, contentType string, body io.Reader) (*http.Response, error) + func PostFile(url, formName, fileName string) (*http.Response, error) + func PostMultipartForm(url string, form *MultipartForm) (*http.Response, error) + func SetTransport(v *http.Transport) + func SetUserAgent(v string) + func UserAgent() string + type MultipartForm struct + func NewMultipartForm() *MultipartForm + func (t *MultipartForm) AddFile(name, fileName string) *MultipartForm + func (t *MultipartForm) AddParam(name, value string) *MultipartForm