Skip to content

Request ⚠️ Experimental

The Request component can be used imported from:

Playground

Parameters

Events

This component has events. Check the documentation about how to use the events.

NamePayloadDescription
@responseObjectFired when the request is completed
@payloadObjectFired when the request is completed

Parameters use

Check the documentation about how to use the parameters.

url

The attribute url is a string that represents the url to the request that will be made.

method

The attribute method is a string that represents the method to the request that will be made. Possible values are GET, POST, PUT, DELETE and PATCH.

body

The attribute body contains the body contents that have been added to the request.

mode

The mode attribute contains the mode of the request (e.g., cors, no-cors, same-origin, navigate).

credentials

The attribute credentials indicates whether the user agent should send or receive cookies from the server.

TIP

For more information about Requests check this link.

Browser support

Detected engine:  

  • Chromium

  • Webkit

  • Gecko

CodeSandbox example

Sorry, not available yet ☹️