Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeResponse ¶
DecodeResponse decodes the response body into the provided interface
Types ¶
type HTTPClient ¶
type HTTPClient struct {
// contains filtered or unexported fields
}
HTTPClient wraps the standard http.Client with additional functionality
func NewHTTPClient ¶
func NewHTTPClient(timeout time.Duration, maxRetries int) *HTTPClient
NewHTTPClient creates a new HTTP client with the specified configuration
func (*HTTPClient) DoRequest ¶
func (c *HTTPClient) DoRequest(ctx context.Context, method, url string, body interface{}, opts *RequestOptions) (*http.Response, error)
DoRequest performs an HTTP request with retries and error handling
Click to show internal directories.
Click to hide internal directories.