This topic describes the API operations that are supported by EdgeRoutine (ER).
For more information about the URL operation, see URL.
For more information about the URLSearchParams operation, see URLSearchParams.
For more information about the TextDecoder operation, see TextDecoder.
For more information about the TextEncoder operation, see TextEncoder.
For more information about the Atob operation, see WindowOrWorkerGlobalScope.atob().
For more information about the BtoA operation, see WindowOrWorkerGlobalScope.btoa().
- The setTimeout and setInterval operations allow you to set a time period in milliseconds. To protect data from side-channel attacks, we recommend that you set the time period to 50 milliseconds.
- Each request has a specific response time. If the specified time period is longer than the response time, an exception is thrown. For example, if the response time is 60 seconds and setTimeouts and setInterval are set to 100 seconds, an exception is thrown.
- setTimeout and setInterval can be configured at most 16 times for each request. After the upper limit is set, it remains effective even if you call the clear method to cancel the specified time period. Each time that setInterval is invoked consumes one quota. setInterval can be invoked at most 16 times.
- The preceding callback functions apply to the boundary of a request. If the request for which setTimeout or setInterval is set is canceled or terminated, they are not invoked.
For more information about the setImmediate and clearImmediate operations, see window.setImmediate.
setImmdediate switches from one context to another context. setImmdediate can be invoked at most 16 times for each request. After you set this upper limit, it remains effective even if you clear it.
utf8ToString: coverts UTF-8-encoded data to strings.
utf16ToString: converts UTF-16-encoded data to strings.
The preceding functions limit the buffer size. If you need to convert data in a large
size, we recommend that you use
TextEcnoder/Decoder. The input buffer can be at most 1 MB. If the input buffer exceeds 1 MB, you can