aws_request
2.1.0, released 8 months ago by an unverified publisher
Create, sign, and send API requests to AWS services with Signature Version 4.
What it does
Allows Dart and Flutter applications to communicate with AWS services by automatically handling Signature Version 4 signing for HTTP requests. Supports custom endpoints, query parameters, headers, and mock requests for testing.
AI-written summary of version 2.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to call AWS REST APIs directly without bringing in the full official AWS SDK.
- You need to handle AWS Signature Version 4 signing manually for custom or lightweight API calls.
Skip it when
- You require automatic retries, exponential backoff, or persistent connection pooling out of the box.
- You want a fully-featured official AWS SDK with generated models for all AWS services.
Strengths
- Simple API to create, sign, and send requests using AWS SigV4.
- Supports custom endpoints, LocalStack, and mock requests for testing.
- Lightweight with minimal dependencies (crypto, http).
Weaknesses
- Does not implement automatic retries or built-in connection pooling.
- Lacks full high-level service client wrappers compared to complete AWS SDKs.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
On Android, add the internet permission `<uses-permission android:name="android.permission.INTERNET" />` to AndroidManifest.xml.
import 'package:aws_request/aws_request.dart';
void main() {
final AwsRequest request = AwsRequest(
awsAccessKey: 'awsAccessKey',
awsSecretKey: 'awsSecretKey',
region: 'region',
);
request.send(type: AwsRequestType.post, service: 'logs');
}Alternatives
Packages that do the same job and could replace aws_request.
Works with
Packages commonly used together with aws_request: ones it builds on, ones built on it, and its own family.