HeaderInterceptor class
an interceptor to add headers to a request before initiating it
- Inheritance
-
- Object
- ApiInterceptor
- HeaderInterceptor
Constructors
-
HeaderInterceptor.new(Map<
String, String> headers)
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onError<
ResponseType, InnerType> (ApiResponse< ResponseType, InnerType> response) → ApiResponse<ResponseType, InnerType> -
Intercepts the error and returns the modified error
inherited
-
onRequest<
ResponseType, InnerType> (ApiRequest< ResponseType, InnerType> request) → ApiRequest<ResponseType, InnerType> -
Intercepts the request and returns the modified request
override
-
onResponse<
ResponseType, InnerType> (ApiResponse< ResponseType, InnerType> response) → ApiResponse<ResponseType, InnerType> -
Intercepts the response and returns the modified response
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited