providerhttp

package
v0.56.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: Apache-2.0 Imports: 5 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)

Execute sends request and decodes its successful JSON body into result.

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(httpClient *http.Client, baseURL string) *resty.Client

NewClient keeps the host's http.Client so it retains ownership of timeouts, proxying, and transport instrumentation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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