Versions in this module Expand all Collapse all v1 v1.0.0 Dec 13, 2023 Changes in this version + type HttpClient struct + func NewHttpClient(baseUrl string) (*HttpClient, error) + func (c *HttpClient) Delete(path string, body interface{}, v interface{}, options RequestOptions) (*http.Response, error) + func (c *HttpClient) Do(req *http.Request, v interface{}) (*http.Response, error) + func (c *HttpClient) Get(path string, query interface{}, v interface{}, options RequestOptions) (*http.Response, error) + func (c *HttpClient) NewRequest(method, reqPath string, params interface{}, options RequestOptions) (*http.Request, error) + func (c *HttpClient) Post(path string, body interface{}, v interface{}, options RequestOptions) (*http.Response, error) + func (c *HttpClient) Put(path string, body interface{}, v interface{}, options RequestOptions) (*http.Response, error) + type RequestOptions struct + Context context.Context + Header http.Header + func (o *RequestOptions) WithContext(ctx context.Context) + func (o *RequestOptions) WithHeader(name, value string) + func (o *RequestOptions) WithHeaders(headers map[string]string)