HttpMetricPlatform class abstract
- Inheritance
-
- Object
- PlatformInterface
- HttpMetricPlatform
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- httpResponseCode ↔ int?
-
HttpResponse code of the request.
getter/setter pair
- requestPayloadSize ↔ int?
-
Size of the request payload.
getter/setter pair
- responseContentType ↔ String?
-
Content type of the response such as text/html, application/json, etc...
getter/setter pair
- responsePayloadSize ↔ int?
-
Size of the response payload.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getAttribute(
String name) → String? - Returns the value of an attribute.
-
getAttributes(
) → Map< String, String> - Returns the map of all the attributes added to this HttpMetric.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
putAttribute(
String name, String value) → void - Sets a value as a string for the specified attribute. Updates the value of the attribute if a value had already existed.
-
removeAttribute(
String name) → void - Removes an attribute from the list. Does nothing if the attribute does not exist.
-
start(
) → Future< void> - Marks the start time of the request
-
stop(
) → Future< void> - Marks the end time of the response and queues the network request metric on the device for transmission.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
verify(
HttpMetricPlatform instance) → void -
Ensures that any delegate class has extended a HttpMetricPlatform.
override
Constants
- maxAttributeKeyLength → const int
- Maximum allowed length of a key passed to putAttribute.
- maxAttributeValueLength → const int
- Maximum allowed length of a value passed to putAttribute.
- maxCustomAttributes → const int
- Maximum allowed number of attributes that can be added.