Versions in this module Expand all Collapse all v0 v0.7.0 Apr 13, 2023 Changes in this version + type Authentication struct + Password string + Username string + type RequestOptions struct + type Requester struct + func NewRequester(baseURL *url.URL, httpClient *http.Client, auth *Authentication) *Requester + func (r *Requester) Authenticate(ctx context.Context) error + func (r *Requester) CloneWithNewBasePath(newPath string) *Requester + func (r *Requester) Delete(ctx context.Context, opts ...WithRequestOption) (*http.Response, error) + func (r *Requester) Do(ctx context.Context, opts ...WithRequestOption) (*http.Response, error) + func (r *Requester) Get(ctx context.Context, opts ...WithRequestOption) (*http.Response, error) + func (r *Requester) Post(ctx context.Context, opts ...WithRequestOption) (*http.Response, error) + func (r *Requester) Put(ctx context.Context, opts ...WithRequestOption) (*http.Response, error) + type WithRequestOption func(r *RequestOptions) + func WithBodyBytes(body []byte) WithRequestOption + func WithBodyReader(body io.Reader) WithRequestOption + func WithDELETE() WithRequestOption + func WithGET() WithRequestOption + func WithHeader(key string, values ...string) WithRequestOption + func WithNoRetry() WithRequestOption + func WithPOST() WithRequestOption + func WithPUT() WithRequestOption + func WithPath(urlPath string) WithRequestOption + func WithQueryParameter(key string, values ...string) WithRequestOption + func WithResponseField(field string) WithRequestOption