DashAuthInterceptor

Custom interceptor for adding authorization headers to the requests.

Parameters

scope

Scope of the interceptor. Required for comparison.

authRules

Authorization rules for the requests. key - regular expression for matching the URL, value - headers to be added to the request.

Constructors

Link copied to clipboard
constructor(scope: String, authRules: Map<Regex, HashMap<String, String>>)

Properties

Link copied to clipboard
open override val scope: String

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun onRequest(request: HttpRequest, continuation: HttpServiceInterceptorRequestContinuation)
Link copied to clipboard
open override fun onResponse(response: HttpResponse, continuation: HttpServiceInterceptorResponseContinuation)
Link copied to clipboard
open override fun toString(): String