Versions in this module Expand all Collapse all v0 v0.2.0 Jun 26, 2024 Changes in this version type Response + StatusCode int v0.1.0 May 3, 2024 Changes in this version + var NewRequest = request.NewRequest + type Client struct + func New(opts ...ClientOption) *Client + func (c *Client) Do(req *Request) (resp *http.Response, err error) + func (c *Client) Fetch(req *request.Request, result any) (resp *Response, err error) + func (c *Client) JSON(req *request.Request, result any) (resp *Response, err error) + type ClientOption func(*Client) + func WithBaseUrl(baseURL string) ClientOption + func WithCookieJar(jar http.CookieJar) ClientOption + func WithCookies(cookies []*http.Cookie) ClientOption + func WithHeader(key, value string) ClientOption + func WithHeaders(header http.Header) ClientOption + func WithHttpClient(hc *http.Client) ClientOption + func WithTimeout(t time.Duration) ClientOption + func WithTrace() ClientOption + type Request = request.Request + type Response struct + Raw *http.Response + Request *Request + Result any