Versions in this module Expand all Collapse all v1 v1.1.0 Apr 5, 2020 Changes in this version + func IsJson(data []byte) bool + func IsXML(data []byte) bool + type DownloadResult struct + BytesCopied int64 + DownloadTime time.Duration + type Request struct + Data []byte + Headers map[string]string + Method string + RequestDataType string + ResponseDataType string + SaveResponseTo interface{} + URL string + func (r *Request) Make() (*RequestResponse, error) + type RequestResponse struct + Header http.Header + Response *http.Response + func Delete(url string) (*RequestResponse, error) + func Get(url string) (*RequestResponse, error) + func Make(method, url string, data []byte, dataType, responseType string, ...) (*RequestResponse, error) + func Patch(url string, data []byte) (*RequestResponse, error) + func Post(url string, data []byte) (*RequestResponse, error) + func Put(url string, data []byte) (*RequestResponse, error) + func (r *RequestResponse) Body() io.ReadCloser + func (r *RequestResponse) CloseBody() error + func (r *RequestResponse) DownloadAsFile(fileName string) (*DownloadResult, error) + func (r *RequestResponse) Headers() http.Header + func (r *RequestResponse) ReadBody() ([]byte, error) + func (r *RequestResponse) Status() string + func (r *RequestResponse) StatusCode() int + func (r *RequestResponse) ToJson(saveTo interface{}) error + func (r *RequestResponse) ToString(saveTo interface{}) error + func (r *RequestResponse) ToXML(saveTo interface{}) error