polywrap_uri_resolvers.resolvers.redirect.redirect_resolver module
This module contains the RedirectResolver class.
- class polywrap_uri_resolvers.resolvers.redirect.redirect_resolver.RedirectResolver(from_uri: Uri, to_uri: Uri)[source]
Bases:
ResolverWithHistoryDefines a resolver that redirects a uri to another uri.
This resolver redirects a uri to another uri. If the uri to resolve is the same as the uri to redirect from, the uri to redirect to is returned. Otherwise, the uri to resolve is returned.