View Source Exonerate.Formats.Uri (exonerate v1.1.3)

Module which provides a macro that generates special code for a uri. This is an absolute uri.

If you require a relative uri, use Exonerate.Formats.UriReference.

the format is governed by appendix A of RFC 3986:

Link to this section Summary


Creates a NimbleParsec parser ~uri/1.

Link to this section Functions

Link to this macro

filter(opts \\ [])

View Source (macro)

Creates a NimbleParsec parser ~uri/1.

This function returns {:ok, ...} if the passed string is a valid uri, or {:error, reason, ...} if it is not. See NimbleParsec for more information on the return tuples.

The function will only be created once per module, and it is safe to call the macro more than once.



  • :name (atom): the name of the function to create. Defaults to :"~uri"