View Source MopURL (MopURL v0.1.0)
URL cleaning service
usage
Usage:
iex> url = "www.google.com/search?q=elixir&source=hp&ei=safsa&oq=elixir&gs_lcp=gfsdsadh"
iex> MopURL.start_link(name: MyMopURL)
iex> MopURL.clean(MyMopURL, url)
{:ok, "https://www.google.com/search?q=elixir"}
Link to this section Summary
Types
The :name
provided to MopURL in start_link/1
.
Functions
Returns a specification to start this module under a supervisor.
Clean url
using instance of mop_url
provided
Callback implementation for GenServer.init/1
.
Start an instance of MopURL
Link to this section Types
@type name() :: atom()
The :name
provided to MopURL in start_link/1
.
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Clean url
using instance of mop_url
provided
Callback implementation for GenServer.init/1
.
Start an instance of MopURL
options
Options
:name
- The name of your MopURL instance. This field is required.