Description
Describe the feature:
We are using ElasticSearch on AWS. In our situation we need to be able to sign each request to ElasticSearch by adding an Authorization header.
The HttpConnection class provides a protected virtual
method named CreateWebRequest. I can extend HttpConnection and override this method to add the Authorization header. This works great. In fact there's a Nuget package which does exactly this. See their AwsHttpConnection implementation.
However, ElasticSearch.Net has a different implementation of HttpConnection for .NET Core which does not provide this same "hook". The CreateHttpRequestMessage method is private static
. I can't figure out a way to add the Authorization header required to use NEST to for ES on AWS.
Is this something that could be added?