hipchat_elixir v0.2.2 Hipchat.Httpc.Response

Struct module for response of Httpc.request/5.

All keys in headers are downcased. If body is not empty, it should be a JSON string.

Summary

Types

t()
t() :: %Hipchat.Httpc.Response{body: binary, headers: map, status: non_neg_integer}

Functions

new(status, headers, body)
new(non_neg_integer, map, binary | map) ::
  {:ok, t} |
  {:error, tuple}