Lists the Web APIs, Node APIs, and ESA-specific APIs available in Edge Function.
Web APIs
Streams
|
API operation |
Description |
References |
|
ByteLengthQueuingStrategy |
Built-in byte-length queuing strategy for stream construction. |
|
|
CountQueuingStrategy |
Built-in chunk-counting queuing strategy for stream construction. |
|
|
ReadableStream |
Readable stream of byte data. The Fetch API exposes a ReadableStream through the Response.body property. |
|
|
ReadableStreamDefaultReader |
Default reader for consuming stream data from network sources such as fetch requests. |
|
|
ReadableByteStreamController |
Controls the state and internal queue of a ReadableStream. |
|
|
ReadableStreamBYOBReader |
Reader that supports zero-copy reading from an underlying byte source for efficient data copy. |
|
|
ReadableStreamBYOBRequest |
||
|
ReadableStreamDefaultController |
Controls a ReadableStream's state and internal queue. Used for non-byte streams. |
|
|
WritableStream |
Standard abstraction for writing streaming data to a sink, with built-in backpressure and queuing. |
|
|
WritableStreamDefaultWriter |
Returned by WritableStream.getWriter(). Locks the writer to the WritableStream so no other streams can write to the underlying sink. |
|
|
WritableStreamDefaultController |
Controls a WritableStream's state. The underlying sink receives a WritableStreamDefaultController instance during construction. |
|
|
TransformStream |
Transforms a data stream from one format to another. Pass it to ReadableStream.pipeThrough() to decode or encode video frames, decompress data, or convert between formats such as XML and JSON. |
|
|
TransformStreamDefaultController |
Manipulates the associated ReadableStream and WritableStream of a TransformStream. Created automatically during construction with no constructor — access it through the TransformStream() callback methods. |
|
|
CompressionStream |
An operation for compressing a stream of data. |
|
|
DecompressionStream |
An operation for decompressing a stream of data. |
Encoding/Decoding
|
API operation |
Description |
References |
|
TextEncoder |
Takes a stream of code points as input and emits a stream of UTF-8 bytes. |
|
|
TextDecoder |
Decodes a byte stream into code points for a specific encoding such as UTF-8, ISO-8859-2, KOI8-R, or GBK. |
|
|
TextEncoderStream |
Streaming equivalent of TextEncoder. Converts a string stream into UTF-8 bytes. |
|
|
TestDecoderStream |
Streaming equivalent of TextDecoder. Converts a binary-encoded text stream (such as UTF-8) into strings. |
|
|
atob |
Decodes a base64-encoded string. |
|
|
btoa |
Encodes a string to base64 ASCII. |
Web Crypto
|
API operation |
Description |
References |
|
Crypto |
Provides access to a cryptographically strong random number generator and cryptographic primitives. |
|
|
SubtleCrypto |
Low-level cryptographic functions. Access through the crypto.subtle property. |
|
|
CryptoKey |
Cryptographic key obtained from one of the SubtleCrypto methods: generateKey(), deriveKey(), importKey(), or unwrapKey(). |
|
|
CryptoKeyPair |
Key pair for an asymmetric cryptography algorithm. |
Timers
|
API operation |
Description |
References |
|
setInterval |
Repeatedly calls a function, with a fixed time delay between each call. |
|
|
clearInterval |
Cancels a timed, repeating action which was previously started by a call to setInterval(). |
|
|
setTimeout |
Sets a timer which executes a function once after the delay elapses. |
|
|
clearTimeout |
Cancels a scheduled action initiated by setTimeout(). |
Console
|
API operation |
Description |
References |
|
Console |
Debugging interface. ESA supports only console.log() for printing debug information and console.alert() for writing key information to logs. |
URL
|
API operation |
Description |
References |
|
URL |
Parses, constructs, normalizes, and encodes URLs. |
|
|
URLPattern |
Matches URLs or URL segments against a pattern. |
Fetch
|
API operation |
Description |
References |
|
Fetch |
Starts a resource request. Returns a promise that resolves with the response. |
|
|
Headers |
Gets, sets, adds, and removes HTTP request and response headers. |
|
|
Request |
Creates a Request object representing a resource request. |
|
|
RequestInit |
Options for configuring a Fetch request. Pass to the Request() constructor or the fetch() function. |
|
|
Response |
Represents a request response. Create one with the Response() constructor or receive one from API operations such as fetch(). |
WebAssembly
|
API operation |
Description |
References |
|
Module |
Compiled, stateless WebAssembly code that can be instantiated. |
|
|
Instance |
Stateful, executable instance of a WebAssembly.Module. Contains all exported functions for calling WebAssembly from JavaScript. |
Node APIs
|
API operation |
Description |
References |
|
assert |
Assertion functions for verifying invariants. |
|
|
AsyncLocalStorage |
Stores and propagates context across asynchronous operations. |
|
|
Buffer |
Fixed-length byte sequence. One of the most common binary data processing interfaces in Node.js. |
|
|
Crypto |
Cryptographic functions: hash, HMAC, sign, verify, cipher, and decipher. |
|
|
Diagnostics Channel |
Named channels for reporting diagnostic message data. |
|
|
path |
Utilities for working with file and directory paths. |
|
|
process |
Current process status data. ESA supports only the env and nextTick subinterfaces. |
|
|
Streams |
Abstract interface for processing streaming data. Provided by the node:stream module. |
|
|
StringDecoder |
Decodes Buffer objects into strings. |
|
|
util |
Node.js utility functions useful for both internal APIs and application development. |
ESA APIs
|
API operation |
Description |
References |
|
Cache API |
Caches data on points of presence (POPs) for faster subsequent requests. Supports configurable TTL and cache size. |
|
|
KV API |
Edge key-value storage. Data written to Edge KV is automatically synchronized to POPs worldwide and readable by Edge Function on the same POP. |
|
|
HtmlStreaming |
Processes and transforms HTML streaming data on POPs. Supports chunked transmission for accelerated delivery. |