Versions in this module Expand all Collapse all v0 v0.1.0 Mar 8, 2024 Changes in this version + type Middleware = func(*http.Request, MiddlewareNext) (*http.Response, error) + type MiddlewareNext = func(*http.Request) (*http.Response, error) + type RequestOption = func(*requestconfig.RequestConfig) error + func WithBaseURL(base string) RequestOption + func WithEnvironmentProduction() RequestOption + func WithHTTPClient(client *http.Client) RequestOption + func WithHeader(key, value string) RequestOption + func WithHeaderAdd(key, value string) RequestOption + func WithHeaderDel(key string) RequestOption + func WithJSONDel(key string) RequestOption + func WithJSONSet(key string, value interface{}) RequestOption + func WithMaxRetries(retries int) RequestOption + func WithMiddleware(middlewares ...Middleware) RequestOption + func WithQuery(key, value string) RequestOption + func WithQueryAdd(key, value string) RequestOption + func WithQueryDel(key string) RequestOption + func WithRequestTimeout(dur time.Duration) RequestOption + func WithResponseBodyInto(dst any) RequestOption + func WithResponseInto(dst **http.Response) RequestOption Other modules containing this package github.com/DefinitelyATestOrg/sam-go/v2 github.com/DefinitelyATestOrg/sam-go/v3