Skip to content

Commit c248155

Browse files
committed
[CLIENT] Improve client documentation for compression option
1 parent ebe6e42 commit c248155

File tree

1 file changed

+3
-2
lines changed
  • elasticsearch-transport/lib/elasticsearch/transport

1 file changed

+3
-2
lines changed

elasticsearch-transport/lib/elasticsearch/transport/client.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,9 @@ class Client
108108
#
109109
# @option arguments [String] :send_get_body_as Specify the HTTP method to use for GET requests with a body.
110110
# (Default: GET)
111-
# @option arguments [true, false] :compression Whether to compress requests. Responses will automatically be
112-
# inflated if they are compressed. Gzip compression will be used. The default is false.
111+
# @option arguments [true, false] :compression Whether to compress requests. Gzip compression will be used.
112+
# The default is false. Responses will automatically be inflated if they are compressed.
113+
# If a custom transport object is used, it must handle the request compression and response inflation.
113114
#
114115
# @yield [faraday] Access and configure the `Faraday::Connection` instance directly with a block
115116
#

0 commit comments

Comments
 (0)