1Search::Elasticsearch::UCsxenr::CHoinjtkr(i3b)uted PerlSDeoacrucmhe:n:tEaltaisotnicsearch::Cxn::Hijk(3)
2
3
4
6 Search::Elasticsearch::Cxn::Hijk - A Cxn implementation which uses Hijk
7
9 version 6.00
10
12 Provides an HTTP Cxn class based on Hijk. The Hijk backend is pure
13 Perl and is very fast, faster even that
14 Search::Elasticsearch::Cxn::NetCurl, but doesn't provide support for
15 https or proxies.
16
17 This class does Search::Elasticsearch::Role::Cxn, whose documentation
18 provides more information, and Search::Elasticsearch::Role::Is_Sync.
19
21 "connect_timeout"
22 Unlike most HTTP backends, Hijk accepts a separate "connect_timeout"
23 parameter, which defaults to 2 seconds but can be reduced in an
24 environment with low network latency.
25
26 Inherited configuration
27 From Search::Elasticsearch::Role::Cxn
28
29 · node
30
31 · max_content_length
32
33 · deflate
34
35 · deflate
36
37 · request_timeout
38
39 · ping_timeout
40
41 · dead_timeout
42
43 · max_dead_timeout
44
45 · sniff_request_timeout
46
47 · sniff_timeout
48
49 · handle_args
50
51 · handle_args
52
54 Search::Elasticsearch::Cxn::Hijk does not support HTTPS.
55
57 "perform_request()"
58 ($status,$body) = $self->perform_request({
59 # required
60 method => 'GET|HEAD|POST|PUT|DELETE',
61 path => '/path/of/request',
62 qs => \%query_string_params,
63
64 # optional
65 data => $body_as_string,
66 mime_type => 'application/json',
67 timeout => $timeout
68 });
69
70 Sends the request to the associated Elasticsearch node and returns a
71 $status code and the decoded response $body, or throws an error if the
72 request failed.
73
74 Inherited methods
75 From Search::Elasticsearch::Role::Cxn
76
77 · scheme()
78
79 · is_https()
80
81 · userinfo()
82
83 · default_headers()
84
85 · max_content_length()
86
87 · build_uri()
88
89 · host()
90
91 · port()
92
93 · uri()
94
95 · is_dead()
96
97 · is_live()
98
99 · next_ping()
100
101 · ping_failures()
102
103 · mark_dead()
104
105 · mark_live()
106
107 · force_ping()
108
109 · pings_ok()
110
111 · sniff()
112
113 · process_response()
114
116 · Search::Elasticsearch::Role::Cxn
117
118 · Search::Elasticsearch::Cxn::HTTPTiny
119
120 · Search::Elasticsearch::Cxn::LWP
121
122 · Search::Elasticsearch::Cxn::NetCurl
123
125 Clinton Gormley <drtech@cpan.org>
126
128 This software is Copyright (c) 2017 by Elasticsearch BV.
129
130 This is free software, licensed under:
131
132 The Apache License, Version 2.0, January 2004
133
134
135
136perl v5.30.0 2019-07-26Search::Elasticsearch::Cxn::Hijk(3)