HTTPFaultInjection class

HTTPFaultInjection can be used to specify one or more faults to inject while forwarding HTTP requests to the destination specified in a route. Fault specification is part of a VirtualService rule. Faults include aborting the Http request from downstream service, and/or delaying proxying of requests. A fault rule MUST HAVE delay or abort or both.

Note: Delay and abort faults are independent of one another, even if both are specified simultaneously.

Constructors

HTTPFaultInjection({Delay? delay, Abort? abort})
The main constructor.
const
HTTPFaultInjection.fromJson(Map<String, dynamic> json)
Creates a HTTPFaultInjection from JSON data.

Properties

abort Abort?
Abort Http request attempts and return error codes back to downstream service, giving the impression that the upstream service is faulty.
final
delay Delay?
Delay requests before forwarding, emulating various failures such as network issues, overloaded upstream service, etc.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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