- API
- Web requests
- Request result
- Getting started [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
- Manage types
- Global context and isolation
- Manage apps
- Batch actions with app items
- Manage external services
- Scripts in widgets
- Web components
- Access permissions
- Getting started with processes
- Getting started with signatures
- Getting started with file previews
- Getting started with the organizational chart
- Getting started with users and groups
-
Getting started with the
Table data type -
Getting started with the
Category data type - Dynamic event type calculation
- Typical use cases
- API
Request result
Hierarchy
Properties
Readonly body
Response as a stream.
Readonly bodyUsed
Whether
body
was used.Readonly headers
Response headers.
const result = await fetch('https://yandex.ru'); // Getting a list of response headers as JSON files const headersJson = JSON.stringify(Object. fromEntries(result.headers)); // Getting the value of a response header const setCookie = result.headers.get('set-cookie');
Readonly ok
Short flag indicating that the response code is less than 300.
Readonly size Deprecated
Свойство устарело. Возвращает 0 по умолчанию. Используйте методы, возвращающие тело ответа для подсчёта размера.
Размер ответа в байтах.
Readonly status
HTTP response code.
For more information about codes, see HttpStatusCode.
Readonly statusText
Text view of the response code.
Readonly timeout Deprecated
Свойство устарело. Возвращает 0 по умолчанию.
Таймаут на время выполнения запроса в миллисекундах.
Readonly type
Type of the response.
Readonly url
Address of the resource.
Methods
arrayBuffer
Wait for the complete response and return is as an array of binary data.
Returns Promise<ArrayBuffer>
blob
Wait for the complete response and return in as a Blob.
Returns Promise<Blob>
json
Wait for the complete response and parse it as JSON.
Returns Promise<any>
text
Wait for the complete response and return it as text.
Returns Promise<string>
Properties
Methods
Feedback sent successfully
Thank you for your input