csokun
1
I ran into an interesting issue while working on my #ex_azure_storage library. I want to support Azure Table Storage merge entity operation (ref. Merge Entity (REST API) - Azure Storage | Microsoft Docs).
The spec said the client needs to send HTTP MERGE
request, but I don’t HTTPoison method spec does not include :merge
.
Is there a way to overwrite HTTPoison request method?
1 Like
Even though it doesn’t have it in spec - :hackney
does
So this works for me
:hackney.request(:merge, url, headers, body)
And apparently HTTPoison just bypasses those params to :hackney
- so I was able to make the same request with:
HTTPoison.request(:merge, url, body, headers)
5 Likes
csokun
3
It works indeed thanks @RudManusachi