Documentation ¶
Rendered for js/wasm
Index ¶
- Constants
- type Client
- func Delete(url string, fn xhr.HandleFunc, x ...any) (*Client, error)
- func Get(url string, fn xhr.HandleFunc, x ...any) (*Client, error)
- func New(fn xhr.HandleFunc, timeout ...time.Duration) *Client
- func Patch(url string, fn xhr.HandleFunc, x ...any) (*Client, error)
- func Post(url string, fn xhr.HandleFunc, x ...any) (*Client, error)
- func Put(url string, fn xhr.HandleFunc, x ...any) (*Client, error)
- func (cli *Client) Delete(url string, x ...any) error
- func (cli *Client) Do(req *Request) error
- func (cli *Client) Get(url string, x ...any) error
- func (cli *Client) JSValue() js.Value
- func (cli *Client) Patch(url string, x ...any) error
- func (cli *Client) Post(url string, x ...any) error
- func (cli *Client) Put(url string, x ...any) error
- func (cli *Client) Release()
- func (cli *Client) Released() bool
- func (cli *Client) WithCredentials(flag bool)
- type Request
Constants ¶
View Source
const ( MimeText string = "text/plain; charset=utf8" MimeJSON string = "application/json; charset=utf8" MimeStream string = "application/octet-stream" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) WithCredentials ¶
Click to show internal directories.
Click to hide internal directories.