Skip to content

Commit

Permalink
Add missing callback definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwinchester committed Oct 15, 2018
1 parent 0b75e74 commit 612b62e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/httpoison/base.ex
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ defmodule HTTPoison.Base do

@callback process_request_options(options) :: options

@callback process_request_params(params) :: params

@callback process_response(response) :: term

@callback process_response_body(binary) :: term

@callback process_response_chunk(binary) :: term
Expand All @@ -164,6 +168,7 @@ defmodule HTTPoison.Base do
@callback put!(binary, term, headers) :: Response.t() | AsyncResponse.t()
@callback put!(binary, term, headers, options) :: Response.t() | AsyncResponse.t()

@callback request(atom, binary) :: {:ok, Response.t() | AsyncResponse.t()} | {:error, Error.t()}
@callback request(atom, binary, term) ::
{:ok, Response.t() | AsyncResponse.t()} | {:error, Error.t()}
@callback request(atom, binary, term, headers) ::
Expand All @@ -174,6 +179,7 @@ defmodule HTTPoison.Base do
@callback request!(atom, binary) :: Response.t() | AsyncResponse.t()
@callback request!(atom, binary, term) :: Response.t() | AsyncResponse.t()
@callback request!(atom, binary, term, headers) :: Response.t() | AsyncResponse.t()
@callback request!(atom, binary, term, headers, options) :: Response.t() | AsyncResponse.t()

@callback start() :: {:ok, [atom]} | {:error, term}

Expand Down

0 comments on commit 612b62e

Please sign in to comment.