AuthTokenInterceptor class
- Inheritance
-
- Object
- HtpioInterceptor
- AuthTokenInterceptor
Constructors
- AuthTokenInterceptor({String? token, String headerName = 'Authorization', String tokenPrefix = 'Bearer'})
Properties
Methods
-
clearToken(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onError(
HtpioError error, HtpioRequest request) → Future< HtpioResponse> -
inherited
-
onRequest(
HtpioRequest request) → Future< HtpioRequest> -
override
-
onResponse(
HtpioResponse response) → Future< HtpioResponse> -
inherited
-
setToken(
String? token) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited