Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPCommunicator ¶
type HTTPCommunicator[I RequestOpts, O *RequestResponse] struct { // contains filtered or unexported fields }
HTTPCommunicator client performs HTTP requests based on RequestOpts returned by adaptFn
func NewHTTPCommunicator ¶
func NewHTTPCommunicator[I RequestOpts, O *RequestResponse](client *http.Client, logger *slog.Logger) *HTTPCommunicator[I, O]
type RequestOpts ¶
type RequestOpts struct { // Only accept POST, GET, HEAD, POSTFORM Method string URL string ContentType string Body io.Reader UrlValues url.Values }
RequestOpts contains all information needed to make the request
type RequestResponse ¶
Response from Request. Call Close() on Body is next worker responsability
Click to show internal directories.
Click to hide internal directories.