Fuzzyurl.Strings

Summary

Functions

Attempts to parse the given string as a URL, and returns either {:ok, fuzzy_url} or {:error, message}

Returns a string representation of the given Fuzzyurl

Functions

from_string(string, opts \\ [])

Specs

from_string(String.t, []) ::
  {:ok, %Fuzzyurl{fragment: term, hostname: term, password: term, path: term, port: term, protocol: term, query: term, username: term}} |
  {:error, String.t}

Attempts to parse the given string as a URL, and returns either {:ok, fuzzy_url} or {:error, message}.

to_string(fu)

Specs

to_string(%Fuzzyurl{fragment: term, hostname: term, password: term, path: term, port: term, protocol: term, query: term, username: term}) :: String.t

Returns a string representation of the given Fuzzyurl.