VoltronHttpRequest constructor
VoltronHttpRequest({})
Implementation
VoltronHttpRequest({
this.method = 'GET',
required this.url,
this.body = '',
connectTimeout = kDefaultTimeoutMs,
receiveTimeout = kDefaultTimeoutMs,
useCaches = true,
headerMap = const {},
}) {
requestId = DateTime.now().millisecondsSinceEpoch.toString();
_initUserAgent();
addHeader(HttpHeaderReq.kUserAgent, _userAgent!);
}