api/internal/network_client library
Classes
- CancellableSubscription
- Subscription handle to cancel an active Server-Sent Events stream.
- DioNetworkClient
- Canonical Dio-backed implementation of NetworkClient.
- MultipartFilePart
- A single binary file part for MultipartUploadRequest.
- MultipartUploadRequest
- Multipart form data upload request for binary assets.
- NetworkClient
- Canonical network client interface for all Digia Engage networking operations.
- NetworkRequest
- Canonical HTTP request representation for Digia Engage.
- NetworkResponse
- Canonical HTTP response representation for Digia Engage.
- SseEvent
- A parsed Server-Sent Event frame.
- SseStreamHandler
- Handler for events dispatched from an active Server-Sent Events stream. A stream ends with exactly one terminal callback: onError when it failed, onClosed when it ended cleanly. Neither follows a cancel.
Enums
- HttpMethod
- Supported HTTP methods for NetworkRequest.
Exceptions / Errors
- NetworkException
- A request that did not complete: no connection, a timeout, a cancel, or a response cut short. Thrown by NetworkClient.execute and NetworkClient.executeMultipart in place of the engine's own exception, so failure diagnostics can name what went wrong without knowing the engine. An HTTP error status is not one of these: it arrives as an ordinary NetworkResponse.
- SseHttpException
- An SSE request answered with a non-2xx status: the stream never opened. Passed to SseStreamHandler.onError so the caller can tell a rejection (401/403, not worth retrying) from a dropped connection.