Skip to content

Commit

Permalink
Merge pull request #56 from thalesmg/proxy
Browse files Browse the repository at this point in the history
feat: add proxy support, drop hot-upgrade
  • Loading branch information
thalesmg authored Sep 23, 2024
2 parents 71ed6ec + be1d56b commit da825ef
Show file tree
Hide file tree
Showing 13 changed files with 278 additions and 410 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/erlang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ jobs:
with:
otp-version: ${{ matrix.otp }}
rebar3-version: 3
- name: Ensure style
run: ./check-style.sh
- name: setup tinyproxy
run: sudo ./test/scripts/setup_tinyproxy.sh
- name: Compile
run: rebar3 compile
- name: Run tests
run: make eunit
- name: Run dialyzer
run: make dialyzer
- name: Ensure version consistency
run: ./check_vsns.escript
- name: Ensure style
run: ./check-style.sh
18 changes: 18 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# ehttpc changes

## 0.5.0

- Dropped hot-upgrade support.
- Added support for using HTTP proxy (HTTP 1.1 only).
To use it, pass `proxy` in the pool opts.

Ex:

```erlang
%% Point to the proxy host and port
ProxyOpts = #{host => "127.0.0.1", port => 8888}.
ehttpc_sup:start_pool(<<"pool">>, [{host, "target.host.com"}, {port, 80}, {proxy, ProxyOpts}]).

%% To use username and password
ProxyOpts = #{host => "127.0.0.1", port => 8888, username => "proxyuser", password => "secret"}.
ehttpc_sup:start_pool(<<"pool">>, [{host, "target.host.com"}, {port, 80}, {proxy, ProxyOpts}]).
```

## 0.4.14

- Forcefully recreate `gproc_pool`s during `ehttpc_pool:init/1` to prevent reusing pools in an inconsistent state.
Expand Down
12 changes: 0 additions & 12 deletions check_vsns.escript

This file was deleted.

2 changes: 1 addition & 1 deletion src/ehttpc.app.src
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{application, ehttpc, [
{description, "HTTP Client for Erlang/OTP"},
{vsn, "0.4.14"},
{vsn, "0.5.0"},
{registered, []},
{applications, [
kernel,
Expand Down
164 changes: 0 additions & 164 deletions src/ehttpc.appup.src

This file was deleted.

Loading

0 comments on commit da825ef

Please sign in to comment.