The http-request
action tag is used to send an HTTP request to the server. It is a wrapper of the fetch
API with basic features. If you want to use more advanced features, you can use the fetch
API directly inside the <script type="module/realm>
tag.
The response-ok
or response-fail
sub-action tag is required to handle the response of the request. If you don’t provide any of them, the request will be ignored.