Skip to content

Commit a85bdc2

Browse files
committed
Adds request_timeout parameter to client
The request timeout to be passed to transport options in seconds
1 parent d543223 commit a85bdc2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/elasticsearch-serverless.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module ElasticsearchServerless
2323
class Client
2424
include ElasticsearchServerless::API
2525

26-
VALID_PARAMETERS = [:adapter, :log, :logger, :serializer_class, :trace, :tracer, :headers]
26+
VALID_PARAMETERS = [:adapter, :log, :logger, :serializer_class, :trace, :tracer, :headers, :request_timeout]
2727

2828
# Initializes an Elasticsearch Serverless Client
2929
#
@@ -33,6 +33,8 @@ class Client
3333
# @option arguments [Symbol] :adapter A specific adapter for Faraday (e.g. `:patron`)
3434
# @option arguments [Boolean] :log Use the default logger (disabled by default)
3535
# @option arguments [Object] :logger An instance of a Logger-compatible object
36+
# @option arguments [Integer] :request_timeout The request timeout to be passed to transport in
37+
# options in seconds
3638
# @option arguments [Boolean] :trace Use the default tracer (disabled by default)
3739
# @option arguments [Object] :tracer An instance of a Logger-compatible object
3840
# @option arguments [Constant] :serializer_class A specific serializer class to use, will be initialized by

0 commit comments

Comments
 (0)