Niddler class abstract

Heart of the consumer interface of niddler. Use this class to log custom requests and responses and to start and stop the server

Constructors

Niddler()

Properties

debugger NiddlerDebugger
The debugger instance used to debug/change network requests/responses
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addBlacklist(RegExp regex) → void
Adds the URL pattern to the blacklist. Items in the blacklist will not be reported or retained in the memory cache. Matching happens on the request URL
install() → void
Installs niddler on the process
isBlacklisted(String url) bool
Checks if the given URL matches the current configured blacklist
logRequest(NiddlerRequest request) → void
Supply a new request to niddler
logRequestJson(String request) → void
Supply a new request to niddler, already transformed into json
logResponse(NiddlerResponse response) → void
Supply a new response to niddler
logResponseJson(String response) → void
Supply a new response to niddler, already transformed into json
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
overrideDebugger(NiddlerDebugger debugger) → void
Override the default debugger with a custom debugger
start({bool waitForDebugger = false}) Future<bool>
Starts the server
stop() Future<void>
Stops the server
toString() String
A string representation of this object.
inherited

Operators

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