Versions in this module Expand all Collapse all v0 v0.0.1 May 17, 2022 Changes in this version + var ErrGetWithBody = errors.New("HTTP GET should not have body") + func Do(ctx context.Context, method, url string, data interface{}) (*http.Response, error) + func DoRequest(r *http.Request) (*http.Response, error) + func Parse(resp *http.Response, val interface{}) error + func ParseHeaders(resp *http.Response, val interface{}) error + func ParseJsonBody(resp *http.Response, val interface{}) error + type Option func(r *http.Request) *http.Request + type Service interface + Do func(ctx context.Context, method, url string, data interface{}) (*http.Response, error) + DoRequest func(r *http.Request) (*http.Response, error) + func NewService(name string, opts ...Option) Service + func NewServiceWithClient(name string, cli *http.Client, opts ...Option) Service