Versions in this module Expand all Collapse all v0 v0.1.6 Jan 19, 2024 v0.1.5 Jan 16, 2024 Changes in this version + var DefaultTimeout time.Duration + var Delete = "DELETE" + var ErrorInvalidURL = errors.New("url is invalid") + var ErrorReadingRespBody = errors.New("error reading response body") + var ErrorRequestBodyInvalid = errors.New("failed to convert request body data to JSON") + var ErrorRequestFailed = errors.New("error making request") + var Get = "GET" + var Post = "POST" + type Header map[string]string + type ReqResp interface + CloseBody func() + HTTPreq func() error + RespBody func() string + ResponseCode func() int + func NewReqResp(ctx context.Context, url *url.URL, method *string, body interface{}, ...) (ReqResp, error)