elasticsearch-perl
elasticsearch-perl copied to clipboard
Additional Transport params not passed to Client
Our web servers have a Squid proxy protecting them which prevents GET with body. The default setting in Transport can (?) be overridden via argument to the constructor in the application code:
Search::Elasticsearch->new( nodes => $self->nodes, transport => $self->transport, send_get_body_as => 'POST' );
However this is not the whole story. In Search::Elasticsearch::Role::Client::Direct->parse_request, a default GET method is provided. When the API config Search::Elasticsearch::Client::6_0::Role::API is consulted, it seems to ignore send_get_body_as, and uses the value in the config, or the default in the code.
Can this be made to use the same setting as default? It might make our lives much easier when dealing with strict HTTP proxy servers.