FSInterceptor class

Captures requests and responses from package:http for display in Fullstory.

Either include this interceptor in your own InterceptedClient or call fsHttpClient to create a new Client with this interceptor preconfigured.

This interceptor cannot be used in a background isolate. This is a known issue that will be addressed in a future release.

Inheritance
  • Object
  • InterceptorContract
  • FSInterceptor

Constructors

FSInterceptor()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

interceptRequest({required BaseRequest request}) → FutureOr<BaseRequest>
override
interceptResponse({required BaseResponse response}) → FutureOr<BaseResponse>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldInterceptRequest() → FutureOr<bool>
inherited
shouldInterceptResponse() → FutureOr<bool>
inherited
toString() → String
A string representation of this object.
inherited

Operators

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