Device: Host 🧪
Channel representing an HTTPS connection to a server.
Type: FetchError
An error may be indicated once either Fetch or Host command becomes ready.
To indicate an error, capacity will be set to 0. buffer.size will be set to
an error code:
Variants (int)
Network- Server unreachable (network error).Hangup- Server hung up.
Readiness
Becomes ready once either
- The resource host can't be reached (network error),
capacityset to 0. - The resource host hung up,
capacityset to 0. - The resource host has sent back a chunk of the resource (a new device
channel has been opened)
- Buffer is not big enough,
bufferoverwritten up tocapacitybytes, andcapacitymodified how many more bytes are required - Buffer is big enough,
bufferoverwritten,capacityunchanged.
- Buffer is not big enough,
Command: Host
Variants (int)
Poll- Poll for more data from server.Hangup- Hang up connection to server.
Traps
- If variant is unknown (not
0or1)