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