Network
Network I/O
The Network I/O subsystem mimics the standards found on the web. The following API surfaces are available:
- Web Sockets
- XMLHttpRequest
- Fetch
Web Socket Support
The entire web socket API is supported, except for extensions handling.
XMLHttpRequest Support
Most of the XHR API surface is supported, including:
- Setting request headers
- Getting response headers
- Event handling
- Sending text and binary data
- Text is expected to be UTF8 encoded.
- Binary data must use
ArrayBuffer
, notBlob
Unsupported portions of the surface:
responseURL
- Sending / receiving Blobs is not supported
- Synchronous XHR will throw an error
Fetch Support
Fetch is polyfilled on top of the XHR implementation using https://github.com/github/fetch.