AWSRequest class
An AWS API HTTP request.
Constructors
-
AWSRequest(dynamic url, {String? method, Map<
String, String> ? queryParameters, Map<String, String> ? headers, List<int> ? body}) -
Creates a new HTTP request.
factory
-
AWSRequest.formData(dynamic url, {Map<
String, dynamic> ? body, Map<String, String> ? queryParameters, Map<String, String> ? headers}) -
Creates a new HTTP request with url-encoded form data
based on
params
argument.factory -
AWSRequest.json(dynamic url, {String? method, dynamic body, Map<
String, String> ? queryParameters, Map<String, String> ? headers}) -
Creates a new HTTP request with json payload
based on
body
argument.factory
Properties
- body → String
-
The body of the request as string (assumes UTF-8 encoding).
no setter
- bodyBytes → Uint8List
-
The body of the request as bytes.
final
- contentType ↔ String?
-
The content type header value of the request.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- headers → Headers
-
The HTTP headers of the request.
final
- host → String
-
The host name of the request URI.
final
- method → String
-
The HTTP method of the request.
final
- path → String
-
The path of the request URI.
final
-
queryParameters
↔ Map<
String, String> -
The query parameters of the request.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scheme → String
-
The scheme of the request URI.
final
- url → Uri
-
The URI of the request.
no setter
Methods
-
getCanonicalHeaders(
) → String - Returns canonical headers
-
getCanonicalQueryString(
) → String - Returns canonical query string
-
getCanonicalRequest(
{bool signPayload = true}) → String - Return canonical request form
-
getCanonicalUri(
) → String - Returns canonical URI parameter
-
getHashedPayload(
) → String - Returns hashed payload
-
getSignedHeaders(
) → String - Returns signed headers
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited