Skip to content

Commit

Permalink
new version 1.18.0
Browse files Browse the repository at this point in the history
Changes:

* bump version
* sync doc
* bump edown to latest 0.8.4 version
  • Loading branch information
benoitc committed Sep 28, 2021
1 parent 73e3563 commit c8f3a6c
Show file tree
Hide file tree
Showing 13 changed files with 43 additions and 37 deletions.
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# NEWS

1.18.0 - 2021-09-28
-------------------

- security: update default CA bundle
- fix pool: make checkout synchrounous (remove unwanted messages)

1.17.4 - 2021-03-18
-------------------

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Copyright (c) 2012-2021 Benoît Chesneau.

__Version:__ 1.17.4
__Version:__ 1.18.0

# hackney

Expand Down
2 changes: 1 addition & 1 deletion doc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Copyright (c) 2012-2021 Benoît Chesneau.

__Version:__ 1.17.4
__Version:__ 1.18.0

# hackney

Expand Down
2 changes: 1 addition & 1 deletion doc/hackney.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ length doesn't go over MaxLength.
### cancel_request/1 ###

<pre><code>
cancel_request(Ref::<a href="#type-client_ref">client_ref()</a>) -&gt; {ok, {atom(), <a href="inet.md#type-socket">inet:socket()</a>, binary(), <a href="hackney_response.md#type-response_state">hackney_response:response_state()</a>}} | {error, term()}
cancel_request(Ref::<a href="#type-client_ref">client_ref()</a>) -&gt; {ok, {atom(), <a href="/Users/benoitc/Projects/kernel/doc/inet.md#type-socket">inet:socket()</a>, binary(), <a href="/Users/benoitc/Projects/hackney/doc/hackney_response.md#type-response_state">hackney_response:response_state()</a>}} | {error, term()}
</code></pre>
<br />

Expand Down
2 changes: 1 addition & 1 deletion doc/hackney_date.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Parse an asctime date.
### date_to_rfc2109/1 ###

<pre><code>
date_to_rfc2109(X1::<a href="calendar.md#type-datetime">calendar:datetime()</a>) -&gt; binary()
date_to_rfc2109(X1::<a href="/Users/benoitc/Projects/stdlib/doc/calendar.md#type-datetime">calendar:datetime()</a>) -&gt; binary()
</code></pre>
<br />

Expand Down
6 changes: 3 additions & 3 deletions doc/hackney_http_connect.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@


<pre><code>
http_socket() = {atom(), <a href="inet.md#type-socket">inet:socket()</a>}
http_socket() = {atom(), <a href="/Users/benoitc/Projects/kernel/doc/inet.md#type-socket">inet:socket()</a>}
</code></pre>

<a name="index"></a>
Expand Down Expand Up @@ -82,7 +82,7 @@ Atoms used to identify messages in {active, once | true} mode.
### peername/1 ###

<pre><code>
peername(X1::<a href="#type-http_socket">http_socket()</a>) -&gt; {ok, {<a href="inet.md#type-ip_address">inet:ip_address()</a>, <a href="inet.md#type-port_number">inet:port_number()</a>}} | {error, atom()}
peername(X1::<a href="#type-http_socket">http_socket()</a>) -&gt; {ok, {<a href="/Users/benoitc/Projects/kernel/doc/inet.md#type-ip_address">inet:ip_address()</a>, <a href="/Users/benoitc/Projects/kernel/doc/inet.md#type-port_number">inet:port_number()</a>}} | {error, atom()}
</code></pre>
<br />

Expand Down Expand Up @@ -153,7 +153,7 @@ __See also:__ [gen_tcp:shutdown/2](gen_tcp.md#shutdown-2).
### sockname/1 ###

<pre><code>
sockname(X1::<a href="#type-http_socket">http_socket()</a>) -&gt; {ok, {<a href="inet.md#type-ip_address">inet:ip_address()</a>, <a href="inet.md#type-port_number">inet:port_number()</a>}} | {error, atom()}
sockname(X1::<a href="#type-http_socket">http_socket()</a>) -&gt; {ok, {<a href="/Users/benoitc/Projects/kernel/doc/inet.md#type-ip_address">inet:ip_address()</a>, <a href="/Users/benoitc/Projects/kernel/doc/inet.md#type-port_number">inet:port_number()</a>}} | {error, atom()}
</code></pre>
<br />

Expand Down
16 changes: 8 additions & 8 deletions doc/hackney_local_tcp.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
### close/1 ###

<pre><code>
close(Socket::<a href="inet.md#type-socket">inet:socket()</a>) -&gt; ok
close(Socket::<a href="/Users/benoitc/Projects/kernel/doc/inet.md#type-socket">inet:socket()</a>) -&gt; ok
</code></pre>
<br />

Expand All @@ -46,7 +46,7 @@ __See also:__ [gen_tcp:close/1](gen_tcp.md#close-1).
### controlling_process/2 ###

<pre><code>
controlling_process(Socket::<a href="inet.md#type-socket">inet:socket()</a>, Pid::pid()) -&gt; ok | {error, closed | not_owner | atom()}
controlling_process(Socket::<a href="/Users/benoitc/Projects/kernel/doc/inet.md#type-socket">inet:socket()</a>, Pid::pid()) -&gt; ok | {error, closed | not_owner | atom()}
</code></pre>
<br />

Expand All @@ -67,7 +67,7 @@ Atoms used to identify messages in {active, once | true} mode.
### peername/1 ###

<pre><code>
peername(Socket::<a href="inet.md#type-socket">inet:socket()</a>) -&gt; {ok, {<a href="inet.md#type-ip_address">inet:ip_address()</a>, <a href="inet.md#type-port_number">inet:port_number()</a>}} | {error, atom()}
peername(Socket::<a href="/Users/benoitc/Projects/kernel/doc/inet.md#type-socket">inet:socket()</a>) -&gt; {ok, {<a href="/Users/benoitc/Projects/kernel/doc/inet.md#type-ip_address">inet:ip_address()</a>, <a href="/Users/benoitc/Projects/kernel/doc/inet.md#type-port_number">inet:port_number()</a>}} | {error, atom()}
</code></pre>
<br />

Expand All @@ -86,7 +86,7 @@ __See also:__ [inet:peername/1](inet.md#peername-1).
### recv/3 ###

<pre><code>
recv(Socket::<a href="inet.md#type-socket">inet:socket()</a>, Length::non_neg_integer(), Timeout::timeout()) -&gt; {ok, any()} | {error, closed | atom()}
recv(Socket::<a href="/Users/benoitc/Projects/kernel/doc/inet.md#type-socket">inet:socket()</a>, Length::non_neg_integer(), Timeout::timeout()) -&gt; {ok, any()} | {error, closed | atom()}
</code></pre>
<br />

Expand All @@ -99,7 +99,7 @@ __See also:__ [gen_tcp:recv/3](gen_tcp.md#recv-3).
### send/2 ###

<pre><code>
send(Socket::<a href="inet.md#type-socket">inet:socket()</a>, Packet::iolist()) -&gt; ok | {error, atom()}
send(Socket::<a href="/Users/benoitc/Projects/kernel/doc/inet.md#type-socket">inet:socket()</a>, Packet::iolist()) -&gt; ok | {error, atom()}
</code></pre>
<br />

Expand All @@ -112,7 +112,7 @@ __See also:__ [gen_tcp:send/2](gen_tcp.md#send-2).
### setopts/2 ###

<pre><code>
setopts(Socket::<a href="inet.md#type-socket">inet:socket()</a>, Opts::list()) -&gt; ok | {error, atom()}
setopts(Socket::<a href="/Users/benoitc/Projects/kernel/doc/inet.md#type-socket">inet:socket()</a>, Opts::list()) -&gt; ok | {error, atom()}
</code></pre>
<br />

Expand All @@ -125,7 +125,7 @@ __See also:__ [inet:setopts/2](inet.md#setopts-2).
### shutdown/2 ###

<pre><code>
shutdown(Socket::<a href="inet.md#type-socket">inet:socket()</a>, How::read | write | read_write) -&gt; ok
shutdown(Socket::<a href="/Users/benoitc/Projects/kernel/doc/inet.md#type-socket">inet:socket()</a>, How::read | write | read_write) -&gt; ok
</code></pre>
<br />

Expand All @@ -138,7 +138,7 @@ __See also:__ [gen_tcp:shutdown/2](gen_tcp.md#shutdown-2).
### sockname/1 ###

<pre><code>
sockname(Socket::<a href="inet.md#type-socket">inet:socket()</a>) -&gt; {ok, {<a href="inet.md#type-ip_address">inet:ip_address()</a>, <a href="inet.md#type-port_number">inet:port_number()</a>}} | {error, atom()}
sockname(Socket::<a href="/Users/benoitc/Projects/kernel/doc/inet.md#type-socket">inet:socket()</a>) -&gt; {ok, {<a href="/Users/benoitc/Projects/kernel/doc/inet.md#type-ip_address">inet:ip_address()</a>, <a href="/Users/benoitc/Projects/kernel/doc/inet.md#type-port_number">inet:port_number()</a>}} | {error, atom()}
</code></pre>
<br />

Expand Down
6 changes: 3 additions & 3 deletions doc/hackney_socks5.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ socks 5 transport.


<pre><code>
socks5_socket() = {atom(), <a href="inet.md#type-socket">inet:socket()</a>}
socks5_socket() = {atom(), <a href="/Users/benoitc/Projects/kernel/doc/inet.md#type-socket">inet:socket()</a>}
</code></pre>

<a name="index"></a>
Expand Down Expand Up @@ -85,7 +85,7 @@ Atoms used to identify messages in {active, once | true} mode.
### peername/1 ###

<pre><code>
peername(X1::<a href="#type-socks5_socket">socks5_socket()</a>) -&gt; {ok, {<a href="inet.md#type-ip_address">inet:ip_address()</a>, <a href="inet.md#type-port_number">inet:port_number()</a>}} | {error, atom()}
peername(X1::<a href="#type-socks5_socket">socks5_socket()</a>) -&gt; {ok, {<a href="/Users/benoitc/Projects/kernel/doc/inet.md#type-ip_address">inet:ip_address()</a>, <a href="/Users/benoitc/Projects/kernel/doc/inet.md#type-port_number">inet:port_number()</a>}} | {error, atom()}
</code></pre>
<br />

Expand Down Expand Up @@ -156,7 +156,7 @@ __See also:__ [gen_tcp:shutdown/2](gen_tcp.md#shutdown-2).
### sockname/1 ###

<pre><code>
sockname(X1::<a href="#type-socks5_socket">socks5_socket()</a>) -&gt; {ok, {<a href="inet.md#type-ip_address">inet:ip_address()</a>, <a href="inet.md#type-port_number">inet:port_number()</a>}} | {error, atom()}
sockname(X1::<a href="#type-socks5_socket">socks5_socket()</a>) -&gt; {ok, {<a href="/Users/benoitc/Projects/kernel/doc/inet.md#type-ip_address">inet:ip_address()</a>, <a href="/Users/benoitc/Projects/kernel/doc/inet.md#type-port_number">inet:port_number()</a>}} | {error, atom()}
</code></pre>
<br />

Expand Down
16 changes: 8 additions & 8 deletions doc/hackney_ssl.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
### close/1 ###

<pre><code>
close(Socket::<a href="ssl.md#type-sslsocket">ssl:sslsocket()</a>) -&gt; ok
close(Socket::<a href="/Users/benoitc/Projects/ssl/doc/ssl.md#type-sslsocket">ssl:sslsocket()</a>) -&gt; ok
</code></pre>
<br />

Expand All @@ -64,7 +64,7 @@ __See also:__ [ssl:close/1](ssl.md#close-1).
### controlling_process/2 ###

<pre><code>
controlling_process(Socket::<a href="ssl.md#type-sslsocket">ssl:sslsocket()</a>, Pid::pid()) -&gt; ok | {error, closed | not_owner | atom()}
controlling_process(Socket::<a href="/Users/benoitc/Projects/ssl/doc/ssl.md#type-sslsocket">ssl:sslsocket()</a>, Pid::pid()) -&gt; ok | {error, closed | not_owner | atom()}
</code></pre>
<br />

Expand All @@ -85,7 +85,7 @@ Atoms used to identify messages in {active, once | true} mode.
### peername/1 ###

<pre><code>
peername(Socket::<a href="ssl.md#type-sslsocket">ssl:sslsocket()</a>) -&gt; {ok, {<a href="inet.md#type-ip_address">inet:ip_address()</a>, <a href="inet.md#type-port_number">inet:port_number()</a>}} | {error, atom()}
peername(Socket::<a href="/Users/benoitc/Projects/ssl/doc/ssl.md#type-sslsocket">ssl:sslsocket()</a>) -&gt; {ok, {<a href="/Users/benoitc/Projects/kernel/doc/inet.md#type-ip_address">inet:ip_address()</a>, <a href="/Users/benoitc/Projects/kernel/doc/inet.md#type-port_number">inet:port_number()</a>}} | {error, atom()}
</code></pre>
<br />

Expand All @@ -104,7 +104,7 @@ __See also:__ [ssl:peername/1](ssl.md#peername-1).
### recv/3 ###

<pre><code>
recv(Socket::<a href="ssl.md#type-sslsocket">ssl:sslsocket()</a>, Length::non_neg_integer(), Timeout::timeout()) -&gt; {ok, any()} | {error, closed | atom()}
recv(Socket::<a href="/Users/benoitc/Projects/ssl/doc/ssl.md#type-sslsocket">ssl:sslsocket()</a>, Length::non_neg_integer(), Timeout::timeout()) -&gt; {ok, any()} | {error, closed | atom()}
</code></pre>
<br />

Expand All @@ -117,7 +117,7 @@ __See also:__ [ssl:recv/3](ssl.md#recv-3).
### send/2 ###

<pre><code>
send(Socket::<a href="ssl.md#type-sslsocket">ssl:sslsocket()</a>, Packet::iolist()) -&gt; ok | {error, atom()}
send(Socket::<a href="/Users/benoitc/Projects/ssl/doc/ssl.md#type-sslsocket">ssl:sslsocket()</a>, Packet::iolist()) -&gt; ok | {error, atom()}
</code></pre>
<br />

Expand All @@ -130,7 +130,7 @@ __See also:__ [ssl:send/2](ssl.md#send-2).
### setopts/2 ###

<pre><code>
setopts(Socket::<a href="ssl.md#type-sslsocket">ssl:sslsocket()</a>, Opts::list()) -&gt; ok | {error, atom()}
setopts(Socket::<a href="/Users/benoitc/Projects/ssl/doc/ssl.md#type-sslsocket">ssl:sslsocket()</a>, Opts::list()) -&gt; ok | {error, atom()}
</code></pre>
<br />

Expand All @@ -143,7 +143,7 @@ __See also:__ [ssl:setopts/2](ssl.md#setopts-2).
### shutdown/2 ###

<pre><code>
shutdown(Socket::<a href="ssl.md#type-sslsocket">ssl:sslsocket()</a>, How::read | write | read_write) -&gt; ok | {error, any()}
shutdown(Socket::<a href="/Users/benoitc/Projects/ssl/doc/ssl.md#type-sslsocket">ssl:sslsocket()</a>, How::read | write | read_write) -&gt; ok | {error, any()}
</code></pre>
<br />

Expand All @@ -156,7 +156,7 @@ __See also:__ [ssl:shutdown/2](ssl.md#shutdown-2).
### sockname/1 ###

<pre><code>
sockname(Socket::<a href="ssl.md#type-sslsocket">ssl:sslsocket()</a>) -&gt; {ok, {<a href="inet.md#type-ip_address">inet:ip_address()</a>, <a href="inet.md#type-port_number">inet:port_number()</a>}} | {error, atom()}
sockname(Socket::<a href="/Users/benoitc/Projects/ssl/doc/ssl.md#type-sslsocket">ssl:sslsocket()</a>) -&gt; {ok, {<a href="/Users/benoitc/Projects/kernel/doc/inet.md#type-ip_address">inet:ip_address()</a>, <a href="/Users/benoitc/Projects/kernel/doc/inet.md#type-port_number">inet:port_number()</a>}} | {error, atom()}
</code></pre>
<br />

Expand Down
16 changes: 8 additions & 8 deletions doc/hackney_tcp.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
### close/1 ###

<pre><code>
close(Socket::<a href="inet.md#type-socket">inet:socket()</a>) -&gt; ok
close(Socket::<a href="/Users/benoitc/Projects/kernel/doc/inet.md#type-socket">inet:socket()</a>) -&gt; ok
</code></pre>
<br />

Expand All @@ -46,7 +46,7 @@ __See also:__ [gen_tcp:close/1](gen_tcp.md#close-1).
### controlling_process/2 ###

<pre><code>
controlling_process(Socket::<a href="inet.md#type-socket">inet:socket()</a>, Pid::pid()) -&gt; ok | {error, closed | not_owner | atom()}
controlling_process(Socket::<a href="/Users/benoitc/Projects/kernel/doc/inet.md#type-socket">inet:socket()</a>, Pid::pid()) -&gt; ok | {error, closed | not_owner | atom()}
</code></pre>
<br />

Expand All @@ -67,7 +67,7 @@ Atoms used to identify messages in {active, once | true} mode.
### peername/1 ###

<pre><code>
peername(Socket::<a href="inet.md#type-socket">inet:socket()</a>) -&gt; {ok, {<a href="inet.md#type-ip_address">inet:ip_address()</a>, <a href="inet.md#type-port_number">inet:port_number()</a>}} | {error, atom()}
peername(Socket::<a href="/Users/benoitc/Projects/kernel/doc/inet.md#type-socket">inet:socket()</a>) -&gt; {ok, {<a href="/Users/benoitc/Projects/kernel/doc/inet.md#type-ip_address">inet:ip_address()</a>, <a href="/Users/benoitc/Projects/kernel/doc/inet.md#type-port_number">inet:port_number()</a>}} | {error, atom()}
</code></pre>
<br />

Expand All @@ -86,7 +86,7 @@ __See also:__ [inet:peername/1](inet.md#peername-1).
### recv/3 ###

<pre><code>
recv(Socket::<a href="inet.md#type-socket">inet:socket()</a>, Length::non_neg_integer(), Timeout::timeout()) -&gt; {ok, any()} | {error, closed | atom()}
recv(Socket::<a href="/Users/benoitc/Projects/kernel/doc/inet.md#type-socket">inet:socket()</a>, Length::non_neg_integer(), Timeout::timeout()) -&gt; {ok, any()} | {error, closed | atom()}
</code></pre>
<br />

Expand All @@ -99,7 +99,7 @@ __See also:__ [gen_tcp:recv/3](gen_tcp.md#recv-3).
### send/2 ###

<pre><code>
send(Socket::<a href="inet.md#type-socket">inet:socket()</a>, Packet::iolist()) -&gt; ok | {error, atom()}
send(Socket::<a href="/Users/benoitc/Projects/kernel/doc/inet.md#type-socket">inet:socket()</a>, Packet::iolist()) -&gt; ok | {error, atom()}
</code></pre>
<br />

Expand All @@ -112,7 +112,7 @@ __See also:__ [gen_tcp:send/2](gen_tcp.md#send-2).
### setopts/2 ###

<pre><code>
setopts(Socket::<a href="inet.md#type-socket">inet:socket()</a>, Opts::list()) -&gt; ok | {error, atom()}
setopts(Socket::<a href="/Users/benoitc/Projects/kernel/doc/inet.md#type-socket">inet:socket()</a>, Opts::list()) -&gt; ok | {error, atom()}
</code></pre>
<br />

Expand All @@ -125,7 +125,7 @@ __See also:__ [inet:setopts/2](inet.md#setopts-2).
### shutdown/2 ###

<pre><code>
shutdown(Socket::<a href="inet.md#type-socket">inet:socket()</a>, How::read | write | read_write) -&gt; ok
shutdown(Socket::<a href="/Users/benoitc/Projects/kernel/doc/inet.md#type-socket">inet:socket()</a>, How::read | write | read_write) -&gt; ok
</code></pre>
<br />

Expand All @@ -138,7 +138,7 @@ __See also:__ [gen_tcp:shutdown/2](gen_tcp.md#shutdown-2).
### sockname/1 ###

<pre><code>
sockname(Socket::<a href="inet.md#type-socket">inet:socket()</a>) -&gt; {ok, {<a href="inet.md#type-ip_address">inet:ip_address()</a>, <a href="inet.md#type-port_number">inet:port_number()</a>}} | {error, atom()}
sockname(Socket::<a href="/Users/benoitc/Projects/kernel/doc/inet.md#type-socket">inet:socket()</a>) -&gt; {ok, {<a href="/Users/benoitc/Projects/kernel/doc/inet.md#type-ip_address">inet:ip_address()</a>, <a href="/Users/benoitc/Projects/kernel/doc/inet.md#type-port_number">inet:port_number()</a>}} | {error, atom()}
</code></pre>
<br />

Expand Down
2 changes: 1 addition & 1 deletion doc/overview.edoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


@copyright 2012-2021 Benoît Chesneau.
@version 1.17.4
@version 1.18.0
@title hackney - HTTP client library in Erlang

@doc
Expand Down
2 changes: 1 addition & 1 deletion rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
[
{edown,
{git, "https://github.com/uwiger/edown.git",
{tag, "0.8.1"}}}
{tag, "0.8.4"}}}
]},

{edoc_opts, [{doclet, edown_doclet},
Expand Down
2 changes: 1 addition & 1 deletion src/hackney.app.src
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{application, hackney,
[
{description, "simple HTTP client"},
{vsn, "1.17.4"},
{vsn, "1.18.0"},
{registered, [hackney_pool]},
{applications, [kernel,
stdlib,
Expand Down

0 comments on commit c8f3a6c

Please sign in to comment.