URL v0.4.1 URL.UUID View Source
Parses a geo
URL
Link to this section Summary
Functions
Parse a URI with the :scheme
of “uuid”
Link to this section Types
Link to this section Functions
Link to this function
parse(uri)
View Source
parse(URI.t()) :: URL.UUID.t() | {:error, {module(), binary()}}
Parse a URI with the :scheme
of “uuid”
This parser will parse the RFC 4122 standard and the non-standard UUID uri.
Example
iex> uuid = URI.parse("uuid:f81d4fae-7dec-11d0-a765-00a0c91e6bf6;a=b")
iex> URL.UUID.parse(uuid)
%URL.UUID{params: %{"a" => "b"}, uuid: "f81d4fae-7dec-11d0-a765-00a0c91e6bf6"}
iex> uuid = URI.parse("urn:uuid:f81d4fae-7dec-11d0-a765-00a0c91e6bf6")
iex> URL.UUID.parse(uuid)
%URL.UUID{params: %{}, uuid: "f81d4fae-7dec-11d0-a765-00a0c91e6bf6"}