View Source CookieJar.HTTPoison (cookie_jar v1.1.0)
Use this module instead of HTTPoison, use jar as the first argument in all function calls, i.e. [:get, :get!, :head, :head!, :options, :options!, :delete, :delete!, :post, :post!, :put, :put!, :patch, :patch!]
Summary
Functions
@spec delete(GenServer.server(), String.t(), HTTPoison.headers(), HTTPoison.options()) :: {:ok, HTTPoison.Response.t() | HTTPoison.AsyncResponse.t()} | {:error, HTTPoison.Error.t()}
@spec delete!( GenServer.server(), String.t(), HTTPoison.headers(), HTTPoison.options() ) :: HTTPoison.Response.t() | HTTPoison.AsyncResponse.t() | no_return()
@spec get(GenServer.server(), String.t(), HTTPoison.headers(), HTTPoison.options()) :: {:ok, HTTPoison.Response.t() | HTTPoison.AsyncResponse.t()} | {:error, HTTPoison.Error.t()}
@spec get!(GenServer.server(), String.t(), HTTPoison.headers(), HTTPoison.options()) :: HTTPoison.Response.t() | HTTPoison.AsyncResponse.t() | no_return()
@spec head(GenServer.server(), String.t(), HTTPoison.headers(), HTTPoison.options()) :: {:ok, HTTPoison.Response.t() | HTTPoison.AsyncResponse.t()} | {:error, HTTPoison.Error.t()}
@spec head!(GenServer.server(), String.t(), HTTPoison.headers(), HTTPoison.options()) :: HTTPoison.Response.t() | HTTPoison.AsyncResponse.t() | no_return()
@spec options( GenServer.server(), String.t(), HTTPoison.headers(), HTTPoison.options() ) :: {:ok, HTTPoison.Response.t() | HTTPoison.AsyncResponse.t()} | {:error, HTTPoison.Error.t()}
@spec options!( GenServer.server(), String.t(), HTTPoison.headers(), HTTPoison.options() ) :: HTTPoison.Response.t() | HTTPoison.AsyncResponse.t() | no_return()
@spec patch( GenServer.server(), String.t(), any(), HTTPoison.headers(), HTTPoison.options() ) :: {:ok, HTTPoison.Response.t() | HTTPoison.AsyncResponse.t()} | {:error, HTTPoison.Error.t()}
@spec patch!( GenServer.server(), String.t(), any(), HTTPoison.headers(), HTTPoison.options() ) :: HTTPoison.Response.t() | HTTPoison.AsyncResponse.t() | no_return()
@spec post( GenServer.server(), String.t(), any(), HTTPoison.headers(), HTTPoison.options() ) :: {:ok, HTTPoison.Response.t() | HTTPoison.AsyncResponse.t()} | {:error, HTTPoison.Error.t()}
@spec post!( GenServer.server(), String.t(), any(), HTTPoison.headers(), HTTPoison.options() ) :: HTTPoison.Response.t() | HTTPoison.AsyncResponse.t() | no_return()
@spec put( GenServer.server(), String.t(), any(), HTTPoison.headers(), HTTPoison.options() ) :: {:ok, HTTPoison.Response.t() | HTTPoison.AsyncResponse.t()} | {:error, HTTPoison.Error.t()}
@spec put!( GenServer.server(), String.t(), any(), HTTPoison.headers(), HTTPoison.options() ) :: HTTPoison.Response.t() | HTTPoison.AsyncResponse.t() | no_return()