HttpHeadersInterceptor class abstract

Abstract Class HttpHeadersInterceptor extends InterceptorContract, allowing custom logic setting headers for authenticated Http Client AJAX requests.

Inheritance
  • Object
  • InterceptorContract
  • HttpHeadersInterceptor

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

headersInterceptor(Map<String, String> headers) Map<String, String>
function intercepts headers for Http Client AJAX requests.
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