Hierarchy
- FetchRequest
Properties
Optional body
Body of the request.
Optional headers
Headers.
Optional method
HTTP request method.
The default method GET
is used.
Optional query
Parameters of the URL string for a query.
To form a web request for the address https://yandex.ru/search/ ?text=elma365
, do the following:
const result = await fetch('https://yandex.ru/search/', {
query: { 'text': 'elma365' }
});
Existing parameters in the address will be united with whatever is specified in query
.
Request parameters