Shun.Provider.verify_uri
You're seeing just the callback
verify_uri
, go back to Shun.Provider module for more information.
Specs
verify_uri(uri :: Shun.uri()) :: result_uri()
Provides decision on the parsed URI.
For each incoming URI, the following values are accepted:
:accept
: the URI is is accepted for use. No further verification is required. Verification will halt with typed result{:ok, Shun.uri()}
.:reject
: the URI is not accepted. No further verification is required. Verification will halt with typed result{:error, :rejected}
.:resolve
: the URI may be accepted if its underlying A and AAAA records pass validation.{:dynamic, dynamic_fun}
: the URI is to be handed to the function which will return a further result. It is used mostly for scenarios where the whitelist / blacklist is maintained and updated dynamically.{:verify_ip, address}
: the value resolves to an IP Address which needs to be verified again.