Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HTTPClient ¶
type HTTPClient interface { SetHeaders(http.Header) Get(context.Context, string, *http.Header) (*http.Response, error) GetBody(context.Context, string, *http.Header) (*http.Response, []byte, error) Post(context.Context, string, *http.Header, io.Reader) (*http.Response, error) PostBody(context.Context, string, *http.Header, io.Reader) (*http.Response, []byte, error) }
HTTPClient is the interface of an http client
func NewHTTPClient ¶
func NewHTTPClient(deps dependencies) HTTPClient
NewHTTPClient creates a new http client
Click to show internal directories.
Click to hide internal directories.