connect method

bool connect()

Connect a HTTP client to the server

Implementation

bool connect() {
  if (client != null) client!.close();
  client = http.Client();
  streamGroup = StreamGroup();
  return true;
}