diff --git a/.gitignore b/.gitignore index b10721ae..b92aed59 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,5 @@ erl_crash.dump mime.types .rebar *.plt -.rebar *_plt rebar3.crashdump diff --git a/NEWS.md b/NEWS.md index 440c5845..1547364b 100644 --- a/NEWS.md +++ b/NEWS.md @@ -57,7 +57,7 @@ ------------------- - security: update default CA bundle -- fix pool: make checkout synchrounous (remove unwanted messages) +- fix pool: make checkout synchronous (remove unwanted messages) 1.17.4 - 2021-03-18 ------------------- @@ -101,7 +101,7 @@ - pool queue count metric is now named `queue_count`. You should update your dashboard to reflect it. -- possible breacking changes when producing uppercase hexadecimal in urls +- possible breaking changes when producing uppercase hexadecimal in urls This change the behaviour of urlencode and pathencode to produce uppercase hexadecimal to comply to the RFC3986 which may affect @@ -129,7 +129,7 @@ systems using URL as signature or in an hash. - request: handle Connection: close response header for stteam - http: handle leading new lines in HTTP messages - http: handle trailers in persistent connection -- pool: update pool timeout docummentation +- pool: update pool timeout documentation - url: fix urlencode 1.15.2 - 2019-09-25 @@ -277,7 +277,7 @@ systems using URL as signature or in an hash. - fix: race condition in controlling process (#407) - fix: spec of #hackney_url{} (#404) -- fix: make sure to not lost a message during hiberntion in async request +- fix: make sure to not lost a message during hibernation in async request - security: certifi 1.2.0 - dependency: update idna 5.0.0 @@ -330,7 +330,7 @@ systems using URL as signature or in an hash. - add: new `socks5_resolver` function - fix: `hackney_util:merge_opts/2` - improvements: inet6 support in socks5 sockets -- doc: miscenaleous docs fixes +- doc: miscellaneous docs fixes - security: being more strict in ssl support - security: bump to certifi 0.7 @@ -363,7 +363,7 @@ systems using URL as signature or in an hash. - refactor: one flat source - replace hackney_metrics_* by [metrics](https://github.com/benoitc/erlang-metrics) library - fix: hackney_pool (#286) -- security: bump to [erlang-certifi](https//github.com/certifi/erlang-certifi) 0.4.0 +- security: bump to [erlang-certifi](https://github.com/certifi/erlang-certifi) 0.4.0 1.4.10 - 2016/02/27 ------------------ @@ -423,7 +423,7 @@ systems using URL as signature or in an hash. - fix `connect_time metric` (#227) - fix redirection when `with_body` is enabled (#228) - close half-closed socket to avoid leak (#231) -- fix undexpected message in `hackney_stream` (#223) +- fix unexpected message in `hackney_stream` (#223) - fix receive/error in hackney_manager (#232) 1.3.1 - 2015/07/28 @@ -449,7 +449,7 @@ systems using URL as signature or in an hash. - new: updated root certificates - fix: ignore comma in set-cookie attributes (#193) - fix: status line parsing when reason phrase is missing entirely (#190) -- fix: make sure sure the response is done during async streaming (#186) +- fix: make sure the response is done during async streaming (#186) - fix metrics (#186) - new: bump latest version of `ssl_verify_hostname` (#175) - fix: parse server headers @@ -590,8 +590,8 @@ supported release of hackney. ### Breaking change: When doing an HEAD request, the signature of the response when it -succeeded is now `{ok, Status, ResponseHeaders}` and do not contains a -client reference any more. +succeeded is now `{ok, Status, ResponseHeaders}` and do not contain a +client reference anymore. 0.13.0 - 2014/07/08 @@ -618,7 +618,7 @@ client reference any more. - improvement: URI encoding is now fully normalized. - improvement: TCP_NODELAY is now available by default for all transports - improvements: IDNA parsing is only done during the normalization which - makes all the connections faster.. + makes all the connections faster. - fix: connections options are now correctly passed to the transports. - fix: HTTP proxying. make sure we reuse the connection - fix: HTTP proxying, only resolve the proxy domain. @@ -645,7 +645,7 @@ function `hackney_mimetypes:filename/1` . - make sure we finish a multipart stream - bump hackney_lib to 0.2.5 - enable TCP_NODELAY by default. (To disable, pass the option - `{nodelay, false} to `connect_options`. + `{nodelay, false} to `connect_options`). 0.11.1 - 2014/03/03 ------------------- @@ -692,7 +692,7 @@ change fix it. - All messages from an async response are now under the format `{hackney_response, Ref, ... }` to distinct hackney messages from others in a process easily. -- You can only make an async response at a time. Ie if you are are doing +- You can only make an async response at a time. Ie if you are doing a persistent request (reusing the same reference) you will need to pass the async option again to the request. For that purpose the functions hackney:send_request/3 and hackney:setopts/2 have been @@ -710,9 +710,9 @@ added. - add support for multipart responses - add support for cookies: There is now a `cookie` -option that can be passed to the request. It can be a sinle cookie or a +option that can be passed to the request. It can be a single cookie or a list of cookies. To parse cookies from the response a function `hackney:cookies/1` has -been added. It return all the cookies as a list of [{Key, Value}]. +been added. It returns all the cookies as a list of [{Key, Value}]. - breaking change: use [hackney_lib](http://github.com/benoitc/hackney_lib) a web toolkit to handle the HTTP protocol and other manipulations. - optimization: send body and headers together when it is possible - fix release handling @@ -757,7 +757,7 @@ used for async response requests. use `hackney:close/1` now. - breaking change: rename `hackney:raw/1` function to `hackney:cancel_request/1`. -- breaking change: the hakney pool handler based on dispcount is now +- breaking change: the hackney pool handler based on dispcount is now available in its [own repository](https://github.com/benoitc/hackney_disp) so hackney doe not depends on dispcount. - fix: canceling and closing a request now make sure the async response process is killed. @@ -801,7 +801,7 @@ used for async response requests. - fix: correct the path passed to a request - fix: multipart forms - fix: Make sure that the controller process of the socket is the pool process when the socket is in the pool -- fix: auth header when when the user is not given +- fix: auth header when the user is not given 0.4.4 - 2013/08/25 ------------------ diff --git a/NOTICE b/NOTICE index 8cde5fbb..1d7b08c3 100644 --- a/NOTICE +++ b/NOTICE @@ -20,7 +20,7 @@ Copyright (c) 2009, Erlang Training and Consulting Ltd. *) mk-ca-bundle.pl from the curl project. under BSD license Copyright (C) 1998 - 2014, Daniel Stenberg, , et al. -*) hackney_trace (C) 2015 under the Erlang Public LicensE +*) hackney_trace (C) 2015 under the Erlang Public License *) hackney_cidr is based on inet_cidr 1.2.1. vendored for customer purpose. Copyright (c) 2024, Enki Multimedia , MIT License diff --git a/README.md b/README.md index 4163aa6e..5c6a8f86 100644 --- a/README.md +++ b/README.md @@ -233,9 +233,9 @@ the request body: - `{file, Path, Name, ExtraHeaders}` : to send a file with DOM element name and extra headers - `{Name, Content}`: to send a full part - `{Name, Content, ExtraHeaders}`: to send a full part - - `{mp_mixed, Name, MixedBoundary}`: To notify we start a part with a + - `{mp_mixed, Name, MixedBoundary}`: To notify we start a part with a mixed multipart content - - `{mp_mixed_eof, MixedBoundary}`: To notify we end a part with a a + - `{mp_mixed_eof, MixedBoundary}`: To notify we end a part with a mixed multipart content - `{file, File}` : To send a file - Bin: To send a binary or an iolist @@ -389,7 +389,7 @@ behaviour. See for example the [hackney_disp](https://github.com/benoitc/hackney_disp) a load-balanced -Pool dispatcher based on dispcount]. +Pool dispatcher based on dispcount. > Note: for now you can`t force the pool handler / client.