hipchat_elixir v0.5.1 Hipchat.Httpc.Response View Source

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.

Link to this section Summary

Link to this section Types

Link to this type t() View Source
t() :: %Hipchat.Httpc.Response{body: binary(), headers: map(), request: map(), status: non_neg_integer()}

Link to this section Functions

Link to this function new(status, headers, body) View Source
Link to this function new(status, headers, body, request) View Source
new(non_neg_integer(), map(), binary() | map(), map()) ::
  {:ok, t()} |
  {:error, tuple()}