Skip to content

Commit

Permalink
Remove httpc HTTPAdapter
Browse files Browse the repository at this point in the history
In order to speed up this iteration, defer implementation of an
`:httpc` based adapter until a later time.
  • Loading branch information
fastjames committed Feb 17, 2025
1 parent 7254ecc commit 5738314
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 328 deletions.
7 changes: 3 additions & 4 deletions lib/honeybadger/http_adapter.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ defmodule Honeybadger.HTTPAdapter do
You can configure the HTTP adapter that Honeybadger uses by setting the
following option:
http_adapter: Honeybadger.HTTPAdapter.Httpc
http_adapter: Honeybadger.HTTPAdapter.Req
Default options can be set by passing a list of options:
http_adapter: {Honeybadger.HTTPAdapter.Httpc, [...]}
http_adapter: {Honeybadger.HTTPAdapter.Req, [...]}
You can also set the client for the application:
config :honeybadger, :http_adapter, Honeybadger.HTTPAdapter.Httpc
config :honeybadger, :http_adapter, Honeybadger.HTTPAdapter.Req
## Usage
defmodule MyApp.MyHTTPAdapter do
Expand Down Expand Up @@ -85,7 +85,6 @@ defmodule Honeybadger.HTTPAdapter do
@default_http_client Enum.find_value(
[
{Req, Honeybadger.HTTPAdapter.Req},
{:httpc, Honeybadger.HTTPAdapter.Httpc},
{Finch, Honeybadger.HTTPAdapter.Finch},
{:hackney, Honeybadger.HTTPAdapter.Hackney}
],
Expand Down
209 changes: 0 additions & 209 deletions lib/honeybadger/http_adapter/httpc.ex

This file was deleted.

115 changes: 0 additions & 115 deletions test/honeybadger/http_adapter/httpc_test.exs

This file was deleted.

0 comments on commit 5738314

Please sign in to comment.