Client constructor
Client(})
Implementation
Client(
this.serverIp,
this.serverPort,
this.path,{
this.query,
this.verbose=false,
this.isSecured=false,
this.headers,
this.expectedStatusCodes,
this.contentType='application/json',
this.timeout,
this.onTimeout
}){
if(expectedStatusCodes != null){
if(!expectedStatusCodes!.contains(ok)){
expectedStatusCodes!.add(ok);
}
} else {
expectedStatusCodes = [ok];
}
_now = DateTime.now().toString();
}