Search::Elasticsearch::Cxn::Hijk(3pm)

Search::Elasticsearch::Cxn::Hijk3pm

A cxn implementation which uses hijk

Version

version 6.00

Overview

Provides 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 configuration

From Search::Elasticsearch::Role::Cxn

•

node

•

max_content_length

•

deflate

•

deflate

•

request_timeout

•

ping_timeout

•

dead_timeout

•

max_dead_timeout

•

sniff_request_timeout

•

sniff_timeout

•

handle_args

•

handle_args

SSL/TLS

Search::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 methods

From Search::Elasticsearch::Role::Cxn

•

scheme()

•

is_https()

•

userinfo()

•

default_headers()

•

max_content_length()

•

build_uri()

•

host()

•

port()

•

uri()

•

is_dead()

•

is_live()

•

next_ping()

•

ping_failures()

•

mark_dead()

•

mark_live()

•

force_ping()

•

pings_ok()

•

sniff()

•

process_response()

Releases

2 releases since Debian 9 (Stretch); the text changed 1 time.

  1. 9
  2. 10

Author

Clinton Gormley <[email protected]>

From libsearch-elasticsearch-perl 6.00-1 in Debian 10 (Buster). Parsed by carta from the page's man source.