Skip to content

Commit

Permalink
Merge pull request #418 from flurin/fix-behaviour
Browse files Browse the repository at this point in the history
Add missing request/1 callback to behaviour
  • Loading branch information
edgurgel authored Jul 8, 2020
2 parents cf33f34 + 82ff08f commit 60185aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/httpoison/base.ex
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ defmodule HTTPoison.Base do
@callback put!(url, body, headers) :: Response.t() | AsyncResponse.t()
@callback put!(url, body, headers, options) :: Response.t() | AsyncResponse.t()

@callback request(Request.t()) :: {:ok, Response.t() | AsyncResponse.t()} | {:error, Error.t()}
@callback request(method, url) :: {:ok, Response.t() | AsyncResponse.t()} | {:error, Error.t()}
@callback request(method, url, body) ::
{:ok, Response.t() | AsyncResponse.t()} | {:error, Error.t()}
Expand Down

0 comments on commit 60185aa

Please sign in to comment.