Versions in this module Expand all Collapse all v2 v2.0.1 Mar 24, 2021 v2.0.0 Mar 22, 2021 Changes in this version + func ValidateResponse(url string, resp *http.Response, respBody []byte) error + type BadResponseCodeError struct + func NewBadResponseCodeError(url string, resp *http.Response, respBody []byte) BadResponseCodeError + func (brce BadResponseCodeError) Error() string + type JSONClient struct + func NewJSONClient() *JSONClient + func (jc *JSONClient) CallAPI(ctx context.Context, requestContext *RequestContext) ([]byte, *http.Response, error) + func (jc *JSONClient) Get(ctx context.Context, req *RequestContext) ([]byte, *http.Response, error) + func (jc *JSONClient) Post(ctx context.Context, req *RequestContext) ([]byte, *http.Response, error) + func (jc *JSONClient) ScanToTarget(ctx context.Context, req *RequestContext, target interface{}) error + func (jc *JSONClient) ScanToTargetRecoveringOnProxyFailure(ctx context.Context, req *RequestContext, target interface{}) error + type RequestContext struct + Body string + Headers map[string]string + IsVerbose bool + LoggingTopic string + Method string + ProxyURL string + TargetURL string + func (rc *RequestContext) String() string Other modules containing this package github.com/breathbath/go_utils/v3