Skip to content

Request - Web Component

Browser support

Detected engine:  

  • Chromium

  • Webkit

  • Gecko

Parameters

The Web component uses the <z-request> tag:

The parametrization of the component can be done with the following custom HTML params:

NameTypeDescription
urlstringThe URL to fetch data from
methodstringThe HTTP method to use
body
(optional)
stringThe body of the request
mode
(optional)
stringThe mode of the request
credentials
(optional)
stringThe credentials of the request

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 conains 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).

credientials

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

TIP

For more information about Requests check this link.

Playground

Customization