NetLensHttpClientAdapter class

Mixed-in types
  • NetLensAdapter

Constructors

NetLensHttpClientAdapter({HttpClient? replayClient})

Properties

hashCode → int
The hash code for this object.
no setterinherited
netLensCore ↔ NetLensCore
latefinalinherited
replayClient ↔ HttpClient?
Client used to send calls again from NetLens. When it is null, a new HttpClient is used for each replay.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

canReplay(NetLensHttpCall call) → bool
Returns true when call was made by the client of this adapter.
override
injectCore(NetLensCore netLensCore) → void
Injects NetLensCore into adapter.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onRequest(HttpClientRequest request, {dynamic body}) → void
Handles httpClientRequest and creates http netLens call from it
onResponse(HttpClientResponse response, HttpClientRequest request, {dynamic body}) → Future<void>
Handles httpClientRequest and adds response to http netLens call
replay(NetLensReplayRequest request) → Future<void>
Sends request. Completes when the response or the error was received.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

clientName → const String
Name of the client shown in NetLens.