Skip to content

Commit

Permalink
Change typespec of Response.body
Browse files Browse the repository at this point in the history
  • Loading branch information
Moonsik Kang committed Jan 27, 2017
1 parent ea6cb6f commit 4afe86f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/httpoison.ex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
defmodule HTTPoison.Response do
defstruct status_code: nil, body: nil, headers: []
@type t :: %__MODULE__{status_code: integer, body: binary, headers: list}
@type t :: %__MODULE__{status_code: integer, body: term, headers: list}
end

defmodule HTTPoison.AsyncResponse do
Expand Down Expand Up @@ -65,4 +65,3 @@ defmodule HTTPoison do

use HTTPoison.Base
end

0 comments on commit 4afe86f

Please sign in to comment.