Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPClient ¶
type HTTPClient interface {
Request(ctx context.Context, method string, url string, options ...RequestOptions) (*Response, error)
}
func NewHTTPClient ¶
func NewHTTPClient(baseURL string) HTTPClient
type RequestOptions ¶
func WithPayload ¶
func WithPayload(v any) RequestOptions
func WithQueryParams ¶
func WithQueryParams(params url.Values) RequestOptions
func WithToken ¶
func WithToken(token string) RequestOptions
func WithUserAgent ¶
func WithUserAgent(userAgent string) RequestOptions
Click to show internal directories.
Click to hide internal directories.