connect abstract method
Establishes a connection to the resource referenced by this UrlConnection.
Must be implemented by subclasses to perform protocol-specific logic
(e.g., building a HttpClientRequest
, sending the request, and receiving the response).
Throws a NetworkException if any error occurs during the connection process.
Implementation
Future<void> connect();