Documentation ¶ Overview ¶ Package providerhttp owns the JSON exchange shared by the web providers, so transport, status, and decoding failures have one definition. Index ¶ func Execute(request *resty.Request, method string, path string, result any) error func NewClient(ctx context.Context, config Config) (*resty.Client, error) type Config Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Execute ¶ func Execute(request *resty.Request, method string, path string, result any) error resty skips decoding, without reporting an error, for a 204 response or a non-JSON Content-Type. Forcing the media type and requiring a body turns those responses into failures instead of empty provider results. func NewClient ¶ func NewClient(ctx context.Context, config Config) (*resty.Client, error) Types ¶ type Config ¶ added in v0.57.0 type Config struct { HTTPClient *http.Client BaseURL string } Source Files ¶ View all Source files exchange_error.goproviderhttp.go Click to show internal directories. Click to hide internal directories.