This module wraps the `fetch` API and handles any kind of HTTP
interaction, including serialization of form parameters.
Methods
(async, static) load(url, body) → {Dollarsign}
Load the contents of an external URL into the elements matched by
this query. When a second `body` argument is passed, assume this
will be a POST request, otherwise it will be a GET request.
Parameters:
Name | Type | Description |
---|---|---|
url |
string
|
URL to load into this element as HTML. |
body |
string
|
(optional) POST body to send along with the URL. |