Versions in this module Expand all Collapse all v0 v0.18.1 Nov 22, 2023 Changes in this version + type Client struct + func NewClient(opts ...ClientOption) *Client + func (c *Client) Do(req *Request, init *RequestInit) (*http.Response, error) + func (c *Client) HTTPClient(redirect RedirectMode) *http.Client + type ClientOption func(*Client) + func WithBinding(bind js.Value) ClientOption + type RedirectMode string + var RedirectModeError RedirectMode = "error" + var RedirectModeFollow RedirectMode = "follow" + var RedirectModeManual RedirectMode = "manual" + func (mode RedirectMode) IsValid() bool + func (mode RedirectMode) String() string + type Request struct + func NewRequest(ctx context.Context, method string, url string, body io.Reader) (*Request, error) + type RequestInit struct + CF *RequestInitCF + Redirect RedirectMode + func (init *RequestInit) ToJS() js.Value + type RequestInitCF struct