Global objects
Console logging methods for debugging and output.Methods:
log(), debug(), info(), warn(), error(), trace(), dir(), dirxml(), table(), time(), timeEnd(), timeLog(), group(), groupEnd(), groupCollapsed(), assert(), count(), countReset(), clear()Cryptographic operations via the Web Crypto API.Properties:
subtle: SubtleCrypto interface for advanced cryptographic operationsgetRandomValues(): Generate cryptographically strong random valuesrandomUUID(): Generate a random UUID
Cache API for storing HTTP responses.
default: Default cacheopen(name): Open a named cache
Task scheduling interface.
wait(delay): Create a promise that resolves after a delaywait(delay, options): Wait with abort signal support
Performance timing and measurement.
now(): High-resolution timestamptimeOrigin: Time origin as DOMHighResTimeStamp
Navigator object with user agent information.
userAgent: User agent string
Global functions
Register event listeners for worker events.Supported events:
fetch, scheduled, queue, alarm, trace, tailRemove previously registered event listeners.
Dispatch a custom event.
Decode a base64-encoded string.
Encode a string to base64.
Schedule a function to run after a delay.
Cancel a timer created with setTimeout.
Schedule a function to run repeatedly at intervals.
Cancel a timer created with setInterval.
Queue a microtask to be executed.
Create a deep copy of a value using the structured clone algorithm.
Global constructors
Represents HTTP headers.
Parse and manipulate URLs.
Parse and manipulate URL query strings.
Represents a readable stream of data.See Streams API for details.
Represents a writable stream of data.See Streams API for details.
Represents a transform stream that can modify data.See Streams API for details.
WebSocket client for bidirectional communication.See WebSocket API for details.
Create a pair of connected WebSocket objects.
Base class for events.
Base class for objects that can receive events.
Create an abort signal for cancellable operations.
Signal for cancelling asynchronous operations.
Encode strings to UTF-8 byte arrays.
Decode byte arrays to strings.
Represents immutable binary data.
Represents a file with name and metadata.
Represents HTML form data.