CompleteRequest class
A complete HTTP request.
Constructors
-
CompleteRequest({@JsonKey.new(name: 'http_version') String? httpVersion, @JsonKey.new(name: 'method') required String method, @JsonKey.new(name: 'url') required Uri url, @JsonKey.new(name: 'headers') required Map<
String, List< headers, @JsonKey.new(name: 'body', fromJson: base64Decode, toJson: base64Encode) required Uint8List body, @JsonKey.new(name: 'trailers') Map<String> >String, List< ? trailers, @JsonKey.new(name: 'timestamp_start') @EpochTimeJsonConverter.new() required DateTime startTime, @JsonKey.new(name: 'timestamp_end') @EpochTimeJsonConverter.new() required DateTime endTime})String> > -
constfactory
-
CompleteRequest.fromJson(Map<
String, dynamic> json) -
factory
Properties
- body → Uint8List
-
no setterinherited
-
copyWith
→ $CompleteRequestCopyWith<
CompleteRequest> -
no setterinherited
- endTime → DateTime
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, List< String> > -
no setterinherited
- httpVersion → String?
-
no setterinherited
- method → String
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startTime → DateTime
-
no setterinherited
- text → String?
-
The UTF-8 decoded text body of the HTTP request or response.
no setterinherited
-
trailers
→ Map<
String, List< ?String> > -
no setterinherited
- url → Uri
-
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited