Skip to content

Commit

Permalink
release 0.1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Zach committed Aug 25, 2021
1 parent 0296c8f commit c367f24
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 16 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [0.1.8] - 2021/08/25

* Fixed issue causing HttpException

## [0.1.7] - 2021/07/30

* Fixed bug limiting calls to POST requests
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# aws_request

A package that generates, signs, sends requests to AWS.
**This package is still under development**

The repository can be found [here](https://github.com/Zsmerritt/Flutter_AWS_Request)

Expand Down
6 changes: 3 additions & 3 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.5.0"
version: "2.6.1"
aws_request:
dependency: "direct main"
description:
Expand Down Expand Up @@ -113,7 +113,7 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0"
version: "1.8.1"
stack_trace:
dependency: transitive
description:
Expand Down Expand Up @@ -148,7 +148,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.19"
version: "0.3.0"
typed_data:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: example
version: 0.0.3
version: 0.1.7
homepage: https://github.com/Zsmerritt/Flutter_AWS_Request

environment:
Expand Down
11 changes: 5 additions & 6 deletions lib/aws_request.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ class AwsRequest {
String _awsAccessKey;
String _awsSecretKey;
String _region;
HttpClient _httpClient = new HttpClient();
static const Map<String, String> _defaultHeaders = {
'User-Agent': 'Dart (dart:io)',
'Accept-Encoding': 'gzip, deflate',
Expand Down Expand Up @@ -237,15 +236,15 @@ class AwsRequest {
Future<HttpClientRequest> _getRequest(String type, String url) async {
switch (type) {
case 'GET':
return await _httpClient.getUrl(Uri.parse(url));
return await HttpClient().getUrl(Uri.parse(url));
case 'POST':
return await _httpClient.postUrl(Uri.parse(url));
return await HttpClient().postUrl(Uri.parse(url));
case 'DELETE':
return await _httpClient.deleteUrl(Uri.parse(url));
return await HttpClient().deleteUrl(Uri.parse(url));
case 'PATCH':
return await _httpClient.patchUrl(Uri.parse(url));
return await HttpClient().patchUrl(Uri.parse(url));
case 'PUT':
return await _httpClient.putUrl(Uri.parse(url));
return await HttpClient().putUrl(Uri.parse(url));
default:
throw AwsRequestException(
'AwsRequest: ERROR: Request type not supported. '
Expand Down
6 changes: 3 additions & 3 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.5.0"
version: "2.6.1"
boolean_selector:
dependency: transitive
description:
Expand Down Expand Up @@ -106,7 +106,7 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0"
version: "1.8.1"
stack_trace:
dependency: transitive
description:
Expand Down Expand Up @@ -141,7 +141,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.19"
version: "0.3.0"
typed_data:
dependency: transitive
description:
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: aws_request
description: An AWS request library that creates, signs, and sends aws requests. Currently under development
version: 0.1.7
description: An AWS request library that creates, signs, and sends aws requests
version: 0.1.8
homepage: https://github.com/Zsmerritt/Flutter_AWS_Request

environment:
Expand Down

0 comments on commit c367f24

Please sign in to comment.