Runtime APIs
Workers runtime ↗ 設計上跟足 JavaScript 標準 ↗,係 web-interoperable。喺可行嘅地方,佢會用 web platform APIs,令你嘅程式碼可以喺 client 同 server 之間重用,亦可以喺唔同嘅 WinterCG ↗ JavaScript runtimes 之間重用。
Workers runtime 功能 相容 Node.js APIs 嘅一個子集,仲支援設定 compatibility date 或 compatibility flag。
- Bindings (env)
- Cache
- Console
- Context (ctx)
- Encoding
- EventSource
- Fetch
- Handlers
- Headers
- HTMLRewriter
- MessageChannel
- Node.js compatibility
- Performance and timers
- Remote-procedure call (RPC)
- Request
- Response
- Scheduler
- Streams
- TCP sockets
- Web Crypto
- Web standards
- WebAssembly (Wasm)
- WebSockets