Current section
Files
Jump to
Current section
Files
lib/request_performer.ex
defmodule EXRequester.Performer do
@moduledoc """
Behaviour that defines a request performer
"""
@doc """
Performs a request
* `method` - the http method
* `client` - The http client
* `url` - The url to request
* `params` - params to be filled in the url
"""
@callback do_request(request :: %EXRequester.Request{}, params :: [atom: String.t]) :: %HTTPotion.Response{}
end