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 RLSearchParams().
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 but 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. Each time they are configured, one quota is consumed even if you call the clear method to clear the values. Each time setInterval is invoked, one quota is consumed. 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. Each time setImmdediate is configured, one quota is consumed even if you clear the value.
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 want to convert a large amount
of data, 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