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:

  1. :accept: the URI is is accepted for use. No further verification is required. Verification will halt with typed result {:ok, Shun.uri()}.

  2. :reject: the URI is not accepted. No further verification is required. Verification will halt with typed result {:error, :rejected}.

  3. :resolve: the URI may be accepted if its underlying A and AAAA records pass validation.

  4. {: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.

  5. {:verify_ip, address}: the value resolves to an IP Address which needs to be verified again.