polywrap_uri_resolvers.resolvers.legacy.redirect_resolver module
This module contains the RedirectUriResolver class.
- class polywrap_uri_resolvers.resolvers.legacy.redirect_resolver.RedirectUriResolver(redirects: Dict[Uri, Uri])[source]
Bases:
UriResolverDefines the redirect URI resolver.
- try_resolve_uri(uri: Uri, client: InvokerClient, resolution_context: UriResolutionContext) Uri[source]
Try to resolve a URI to redirected URI.
- Parameters:
uri (Uri) – The URI to resolve.
client (InvokerClient) – The client to use for resolving the URI.
resolution_context (UriResolutionContext) – The resolution context.
- Returns:
The resolved URI.
- Return type: