providerhttp

package
v0.57.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package providerhttp owns the JSON exchange shared by the web providers, so transport, status, and decoding failures have one definition.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(request *resty.Request, method string, path string, result any) (*resty.Response, 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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL