HTTPEventBase class
Lightweight HTTP event - only essential data Hub will enrich with device info, session data, etc.
- Inheritance
-
- Object
- ObslyEventBase
- HTTPEventBase
Constructors
-
HTTPEventBase({required String method, required String url, int? statusCode, required Duration duration, Map<
String, String> requestHeaders = const {}, Map<String, String> responseHeaders = const {}, String? requestBody, String? responseBody, bool isError = false, String? errorMessage, DateTime? timestamp})
Properties
-
data
→ Map<
String, dynamic> -
no setteroverride
- duration → Duration
-
final
- errorMessage → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isError → bool
-
final
- method → String
-
final
- name → String
-
no setteroverride
- requestBody → String?
-
final
-
requestHeaders
→ Map<
String, String> -
final
- responseBody → String?
-
final
-
responseHeaders
→ Map<
String, String> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → int?
-
final
- timestamp → DateTime
-
no setteroverride
- type → EventType
-
no setteroverride
- url → String
-
final
Methods
-
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