Versions in this module Expand all Collapse all v0 v0.0.1 Oct 24, 2024 Changes in this version + func WithHeader(key string, value string) func(req *http.Request) + type FetchFunc func(ctx context.Context, data *TModel) error + func FetcherWithClient[TModel any](c *http.Client, method string, url string, headers ...HeaderOption) FetchFunc[TModel] + func Fetcher[TModel any](method string, url string) FetchFunc[TModel] + type FetcherReader func(ctx context.Context, f func(ctx context.Context, reader io.Reader) error) error + func FetcherCustom(c *http.Client, method string, url string, headers ...HeaderOption) FetcherReader + type HeaderOption func(req *http.Request) + func WithCompression() HeaderOption + type IterateFetch func(f func(data TModel) error) error + func IteratorWithClient[TModel any](c *http.Client, method string, url string, level int, headers ...HeaderOption) IterateFetch[TModel] + func Iterator[TModel any](method string, url string, level int, headers ...HeaderOption) IterateFetch[TModel]