Versions in this module Expand all Collapse all v1 v1.1.0 Sep 21, 2018 Changes in this version + func PlainText(resp *http.Response, result interface{}) error v1.0.0 Dec 22, 2017 Changes in this version + const AuthorizationHeader + const ContentTypeFormURLEncoded + const ContentTypeJSON + func BasicAuth(username, password string) string + func Bytes(resp *http.Response, result interface{}) error + func EncodeBody(r *http.Request, params url.Values) *http.Request + func Get(base, path string, params url.Values, headers http.Header, parser Parser, ...) error + func Is4xx(err error) bool + func Is5xx(err error) bool + func JSON(resp *http.Response, result interface{}) error + func None(resp *http.Response, result interface{}) error + func Perform(r *http.Request, parser Parser, result interface{}) error + func Post(base, path string, params url.Values, headers http.Header, parser Parser, ...) error + func Put(base, path string, params url.Values, headers http.Header, parser Parser, ...) error + func Raw(resp *http.Response, result interface{}) error + func StatusCode(err error) int + func URL(base, path string, params url.Values) *url.URL + type ContentTypeError struct + ContentType string + ExpectedContentType string + StatusCode int + func (err *ContentTypeError) Error() string + type Error struct + Cause error + Method string + Path string + func (err *Error) Error() string + type Parser func(resp *http.Response, result interface{}) error + type StatusError struct + Body interface{} + ContentType string + DecodingError error + StatusCode int + func CheckStatusError(err error) *StatusError + func (err *StatusError) Error() string Other modules containing this package github.com/andreyvit/httpsimplified/v2