Created
October 10, 2014 22:39
-
-
Save edgurgel/5e8e9e412a03fb933cf1 to your computer and use it in GitHub Desktop.
Overriding HTTPoison.Base.request/5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Example do | |
use HTTPoison.Base | |
def request(method, url, body \\ "", headers \\ [], options \\ []) do | |
IO.inspect [method, url, body, headers, options] | |
super(method, url, body, headers, options) | |
end | |
end |
Author
edgurgel
commented
Oct 10, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment