Versions in this module Expand all Collapse all v0 v0.0.2 Mar 16, 2025 Changes in this version + func ExecuteNewRequest(ctx context.Context, method string, u string, body interface{}, ...) error + func UseDefaultParam[T any](dst *param.Field[T], src *T) + type PreRequestOptionFunc func(*RequestConfig) error + func (s PreRequestOptionFunc) Apply(r *RequestConfig) error + type RequestConfig struct + BaseURL *url.URL + BearerToken string + Body io.Reader + Context context.Context + HTTPClient *http.Client + MaxRetries int + Middlewares []middleware + Request *http.Request + RequestTimeout time.Duration + ResponseBodyInto interface{} + ResponseInto **http.Response + func NewRequestConfig(ctx context.Context, method string, u string, body interface{}, ...) (*RequestConfig, error) + func PreRequestOptions(opts ...RequestOption) (RequestConfig, error) + func (cfg *RequestConfig) Apply(opts ...RequestOption) error + func (cfg *RequestConfig) Clone(ctx context.Context) *RequestConfig + func (cfg *RequestConfig) Execute() (err error) + type RequestOption interface + Apply func(*RequestConfig) error + type RequestOptionFunc func(*RequestConfig) error + func (s RequestOptionFunc) Apply(r *RequestConfig) error