CompleteRequest class

A complete HTTP request.

Inheritance
Implemented types
Annotations
  • @freezed

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<String>> headers, @JsonKey.new(name: 'body', fromJson: base64Decode, toJson: base64Encode) required Uint8List body, @JsonKey.new(name: 'trailers') Map<String, List<String>>? trailers, @JsonKey.new(name: 'timestamp_start') @EpochTimeJsonConverter.new() required DateTime startTime, @JsonKey.new(name: 'timestamp_end') @EpochTimeJsonConverter.new() required DateTime endTime})
const
factory
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