Skip to content

Instantly share code, notes, and snippets.

@kristinpeterson
Last active September 8, 2015 20:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kristinpeterson/471291b3bb4559a1837f to your computer and use it in GitHub Desktop.
Save kristinpeterson/471291b3bb4559a1837f to your computer and use it in GitHub Desktop.
Elixir: the new kid in town - code snip #6
def fetch(title) do
find_by_title_url(title)
|> HTTPoison.get([ {"User-agent", "Elixir"} ])
|> handle_response
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment