fuzzyurl v1.0.1 Fuzzyurl.Strings

Functions to parse a string URL into a Fuzzyurl, and vice versa.

Link to this section 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

Link to this section Functions

Link to this function from_string(string, opts \\ [])
from_string(String.t(), Keyword.t()) ::
  {:ok, Fuzzyurl.t()} | {:error, String.t()}

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

Link to this function to_string(fu)
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.