Versions in this module Expand all Collapse all v0 v0.0.9 Apr 16, 2024 Changes in this version + type Log struct + ReqBody string + RespBody string + RespStatus string + URL string + type LogRoundTrip struct + func NewLogRoundTrip(rp http.RoundTripper, log func(l Log, err error)) *LogRoundTrip + func (l *LogRoundTrip) RoundTrip(request *http.Request) (resp *http.Response, err error) + type Request struct + func NewRequest(ctx context.Context, method, url string) *Request + func (req *Request) AddHeader(key string, value string) *Request + func (req *Request) AddParam(key string, value string) *Request + func (req *Request) Client(cli *http.Client) *Request + func (req *Request) Do() *Response + func (req *Request) JSONBody(val any) *Request + type Response struct + func (r *Response) JSONScan(val any) error