Documentation ¶
Overview ¶
Package http defines the HTTP client used to interact with the Snyk Code API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPClient ¶
func NewHTTPClient ¶
func NewHTTPClient( httpClientFactory HTTPClientFactory, options ...OptionFunc, ) HTTPClient
type HTTPClientFactory ¶ added in v1.4.4
type OptionFunc ¶ added in v1.4.2
type OptionFunc func(*httpClient)
func WithErrorReporter ¶ added in v1.4.2
func WithErrorReporter(errorReporter observability.ErrorReporter) OptionFunc
func WithInstrumentor ¶ added in v1.4.2
func WithInstrumentor(instrumentor observability.Instrumentor) OptionFunc
func WithLogger ¶ added in v1.4.2
func WithLogger(logger *zerolog.Logger) OptionFunc
func WithRetryCount ¶ added in v1.4.2
func WithRetryCount(retryCount int) OptionFunc
Click to show internal directories.
Click to hide internal directories.