-
-
Notifications
You must be signed in to change notification settings - Fork 714
Closed
Labels
enhancementNew feature or requestNew feature or requestinterceptorsPull requests or issues related to Dispatcher InterceptorsPull requests or issues related to Dispatcher Interceptors
Description
class Handler {
// 1. resolve dns entries
// 2. pick an ip for entry list
// 3. const origin = new URL(opts.origin)
// 4. origin.hostname = ip
// 3. call dispatch({ ...opts, origin }, handler)
}
export const dnsInterceptor = dispatch => (opts, handler) => isDNSName(opts.origin.hostname)
? dispatch(opts, new Handler(opts, { dispatch, handler }))
: dispatch(opts, handler)Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestinterceptorsPull requests or issues related to Dispatcher InterceptorsPull requests or issues related to Dispatcher Interceptors