chore(llc): minor changes

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2021-07-23 14:53:43 +05:30
committed by xsahil03x
parent 49ebb1e085
commit 44b4358c3d
6 changed files with 17 additions and 26 deletions
@@ -33,7 +33,7 @@ class StreamHttpClient {
..options.connectTimeout = _options.connectTimeout.inMilliseconds
..options.queryParameters = {
'api_key': apiKey,
..._options.queryParams,
..._options.queryParameters,
}
..options.headers = {
'Content-Type': 'application/json',
@@ -10,7 +10,7 @@ class StreamHttpClientOptions {
this.location,
this.connectTimeout = const Duration(seconds: 6),
this.receiveTimeout = const Duration(seconds: 6),
this.queryParams = const {},
this.queryParameters = const {},
this.headers = const {},
}) : _baseUrl = baseUrl ?? _defaultBaseURL;
@@ -40,7 +40,7 @@ class StreamHttpClientOptions {
///
/// The value can be overridden per parameter by adding a [MultiParam]
/// object wrapping the actual List value and the desired format.
final Map<String, Object?> queryParams;
final Map<String, Object?> queryParameters;
/// Http request headers.
/// The keys of initial headers will be converted to lowercase,