InfospectNetworkBreakpoint class

A Proxyman-style network breakpoint rule.

When an outgoing call matches endpoint / method and every entry in conditions, Infospect pauses the request and/or response for editing.

Constructors

InfospectNetworkBreakpoint({required String id, required String endpoint, String? method, bool enabled = true, bool breakOnRequest = true, bool breakOnResponse = true, List<InfospectBreakpointCondition> conditions = const <InfospectBreakpointCondition>[]})
const
InfospectNetworkBreakpoint.fromMap(Map<String, dynamic> map)
factory

Properties

breakOnRequest bool
Pause before the request is sent so headers / params / body can be edited.
final
breakOnResponse bool
Pause after the response arrives so status / headers / body can be edited.
final
conditions List<InfospectBreakpointCondition>
Extra AND-combined filters (query, headers, body, status, …).
final
enabled bool
Whether this rule is active.
final
endpoint String
Path (or path pattern) to match, e.g. /api/users or /api/users*.
final
hashCode int
The hash code for this object.
no setterinherited
id String
Stable identifier for this rule.
final
method String?
HTTP method to match (e.g. GET, POST).
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

copyWith({String? id, String? endpoint, String? method, bool clearMethod = false, bool? enabled, bool? breakOnRequest, bool? breakOnResponse, List<InfospectBreakpointCondition>? conditions}) InfospectNetworkBreakpoint
matches(InfospectBreakpointMatchContext context) bool
Whether this rule matches context for the current intercept phase.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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