|
NAMESearch::Elasticsearch::Cxn::Hijk - A Cxn implementation which uses HijkVERSIONversion 6.00DESCRIPTIONProvides an HTTP Cxn class based on Hijk. The Hijk backend is pure Perl and is very fast, faster even that Search::Elasticsearch::Cxn::NetCurl, but doesn't provide support for https or proxies.This class does Search::Elasticsearch::Role::Cxn, whose documentation provides more information, and Search::Elasticsearch::Role::Is_Sync. CONFIGURATION"connect_timeout"Unlike most HTTP backends, Hijk accepts a separate "connect_timeout" parameter, which defaults to 2 seconds but can be reduced in an environment with low network latency.Inherited configurationFrom Search::Elasticsearch::Role::Cxn
SSL/TLSSearch::Elasticsearch::Cxn::Hijk does not support HTTPS.METHODS"perform_request()"($status,$body) = $self->perform_request({ # required method => 'GET|HEAD|POST|PUT|DELETE', path => '/path/of/request', qs => \%query_string_params, # optional data => $body_as_string, mime_type => 'application/json', timeout => $timeout }); Sends the request to the associated Elasticsearch node and returns a $status code and the decoded response $body, or throws an error if the request failed. Inherited methodsFrom Search::Elasticsearch::Role::Cxn
SEE ALSO
AUTHORClinton Gormley <drtech@cpan.org>COPYRIGHT AND LICENSEThis software is Copyright (c) 2017 by Elasticsearch BV.This is free software, licensed under: The Apache License, Version 2.0, January 2004
Visit the GSP FreeBSD Man Page Interface. |