-
Notifications
You must be signed in to change notification settings - Fork 45
fixes gh-1036 add opt accept_encoding #1052
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -129,10 +129,10 @@ Below is a list of all ``http`` functions. | |
| * ``keepalive_interval`` - the interval, in seconds, that the operating | ||
| system will wait between sending keepalive probes. See also | ||
| `CURLOPT_TCP_KEEPINTVL <https://curl.haxx.se/libcurl/c/CURLOPT_TCP_KEEPINTVL.html>`_. | ||
| If both keepalive_idle and keepalive_interval are set, then | ||
| Tarantool will also set HTTP keepalive headers: Connection:Keep-Alive | ||
| and Keep-Alive:timeout=<keepalive_idle>. | ||
| Otherwise Tarantool will send Connection:close | ||
| If both ``keepalive_idle`` and ``keepalive_interval`` are set, then | ||
| Tarantool will also set HTTP keepalive headers: ``Connection:Keep-Alive`` | ||
| and ``Keep-Alive:timeout=<keepalive_idle>``. | ||
| Otherwise Tarantool will send ``Connection:close`` | ||
| * ``low_speed_time`` - set the "low speed time" -- the time that the | ||
| transfer speed should be below the "low speed limit" for the library | ||
| to consider it too slow and abort. See also | ||
|
|
@@ -158,6 +158,14 @@ Below is a list of all ``http`` functions. | |
| will be received. This last response will be returned as a result. | ||
| Setting this option to ``false`` allows to disable this behavior. | ||
| In this case, the HTTP client will return a 3xx response itself. | ||
| * ``accept_encoding`` - enables automatic decompression of HTTP responses | ||
| by setting the contents of the Accept-Encoding header sent in a HTTP | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. an HTTP |
||
| request and enabling decoding of a response when a Content-Encoding | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the Content-Encoding |
||
| header is received. This option specifies what encoding to use. | ||
| It can be an empty string which means Accept-Encoding header will | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the Accept-Encoding |
||
| contain all built-in supported encodings. It also can be comma-separated | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. all supported built-in encodings
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. a comma-separated |
||
| list of accepted encodings, like: ``"br, gzip, deflate"``. See also | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| `CURLOPT_ACCEPT_ENCODING <https://curl.haxx.se/libcurl/c/CURLOPT_ACCEPT_ENCODING.html>`_ | ||
|
|
||
| :return: connection information, with all of these components: | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Onvember @veod32 Just for testing gh comments