Versions in this module Expand all Collapse all v0 v0.1.0 Nov 2, 2023 Changes in this version + var SerializationMethodToContentType = map[string]string + func Contains(slice []string, item string) bool + func GenerateURL(ctx context.Context, serverURL, path string, pathParams interface{}, ...) (string, error) + func MarshalJSON(v interface{}, tag reflect.StructTag, topLevel bool) ([]byte, error) + func MatchContentType(contentType string, pattern string) bool + func PopulateHeaders(ctx context.Context, req *http.Request, headers interface{}) + func PopulateQueryParams(ctx context.Context, req *http.Request, queryParams interface{}, ...) error + func ReplaceParameters(stringWithParams string, params map[string]string) string + func Retry(ctx context.Context, r Retries, action func() (*http.Response, error)) (*http.Response, error) + func SerializeRequestBody(ctx context.Context, request interface{}, nullable, optional bool, ...) (io.Reader, string, error) + func UnmarshalJSON(b []byte, v interface{}, tag reflect.StructTag, topLevel bool, ...) error + func UnmarshalJsonFromResponseBody(body io.Reader, out interface{}, tag string) error + type BackoffStrategy struct + Exponent float64 + InitialInterval int + MaxElapsedTime int + MaxInterval int + type HTTPClient interface + Do func(req *http.Request) (*http.Response, error) + type Retries struct + Config *RetryConfig + StatusCodes []string + type RetryConfig struct + Backoff *BackoffStrategy + RetryConnectionErrors bool + Strategy string + type SecurityClient struct + func ConfigureSecurityClient(c HTTPClient, security func(ctx context.Context) (interface{}, error)) *SecurityClient + func (c *SecurityClient) Do(req *http.Request) (*http.Response, error)