DashAuthInterceptor
class DashAuthInterceptor(val scope: String, authRules: Map<Regex, HashMap<String, String>>) : DashScopedHttpServiceInterceptor
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
Functions
Link copied to clipboard
open override fun onResponse(response: HttpResponse, continuation: HttpServiceInterceptorResponseContinuation)