hipchat_elixir v0.1.0 Hipchat.Httpc

Thin wrapper around hackney.

Summary

Functions

Send HTTP request with the given parameters

Types

method_t()
method_t() :: :get | :post | :put | :delete

Functions

request(method, url, body, headers, options \\ [])
request(method_t, String.t, term, [{String.t, String.t}], Keyword.t) ::
  {:ok, Hipchat.Httpc.Response.t} |
  {:error, term}

Send HTTP request with the given parameters.

options accepts any options available in :hackney.request/5. Additionally, :params option can take query params as [{String.t, String.t}].