NiddlerResponse class
Implementation class for representing niddler responses (incoming). This is not restricted to strictly HTTP responses
- Inheritance
-
- Object
- NiddlerMessageBase
- NiddlerResponse
Constructors
-
NiddlerResponse({required int statusCode, required String statusLine, required String? httpVersion, required int writeTime, required int readTime, required int waitTime, required String messageId, required String requestId, required int timeStamp, required Map<
String, List< headers, NiddlerRequest? actualNetworkRequest, NiddlerResponse? actualNetworkResponse})String> > - Constructor
Properties
- actualNetworkRequest → NiddlerRequest?
-
The actual network request that was sent over 'the wire'. Useful for when other interceptors modify the data after niddler has seen it. Can be null
final
- actualNetworkResponse → NiddlerResponse?
-
The actual network response that was received over 'the wire'. Useful for when other interceptors modify the data after niddler has seen it. Can be null
final
- body ↔ String?
-
Binary body of the message, encoded as Base64
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, List< String> > -
List of headers associated with this message
finalinherited
- httpVersion → String?
-
The http version of this request. Can be empty if unknown or non-http. If set, please use the standard notation: HTTP/1.1, ...
final
- messageId → String
-
Message id of the message. Must be unique over all messages
finalinherited
- readTime → int
-
The time it took to read the data from 'the wire'. If unknown, set to -1
final
- requestId → String
-
The request if of the message. Used to associate requests with their responses, they use the same requestId
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → int
-
The status code of the request. Eg: 200 for HTTP OK
final
- statusLine → String
-
The status line associated with the request. Eg: 'I am a robot'. Can be empty if unknown
final
- timeStamp → int
-
The timestamp, in milliseconds since epoch, that this message's content was generated
finalinherited
- waitTime → int
-
The time spent waiting for the first data to become available. If unknown, set to -1
final
- writeTime → int
-
The time it took to write the data to 'the wire'. If unknown, set to -1
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → dynamic - Converts the response to a json object
-
toJsonString(
) → String -
Converts the response to a json string
override
-
toString(
) → String -
A string representation of this object.
inherited
-
updateJson(
Map< String, dynamic> jsonData) → void -
Updates the given (json) data with the values stored in this instance
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited