benoitc / hackney

simple HTTP client in Erlang
Other
1.34k stars 427 forks source link

How to disable pooling #598

Closed dowusu closed 4 years ago

dowusu commented 4 years ago

I'm new to Hackney, I plan using it extensively. I was wondering if I can disable connection pooling. I understand hackney starts a default pool on startup. How can I disable this pool. I want a new connection everytime. Secondly how do I post xml to http using hackney in Elixir.

benoitc commented 4 years ago

just set the pool to false or none. for the pool. not sure wht-y you mean for the second, can't the xml be added as a body to the post request?

dowusu commented 4 years ago

Thanks for the swift response, initially had a challenge posting the xml, it was an oversight on my side. It's fine now. Keep up the good the work.