@@ -696,11 +696,11 @@ client_object
696
696
697
697
.. data :: decoders
698
698
699
+ **Since: ** :doc: `2.11.0 </release/2.11.0 >`
700
+
699
701
Decoders used to deserialize response data based on the ``Content-Type `` header value.
700
702
Learn more from :ref: `Deserialization <response_deserialization >`.
701
703
702
- **Since: ** :doc: `2.11.0 </release/2.11.0 >`
703
-
704
704
.. _request_options :
705
705
706
706
request_options
@@ -732,15 +732,15 @@ request_options
732
732
733
733
.. data :: chunked
734
734
735
+ **Since: ** :doc: `2.11.0 </release/2.11.0 >`
736
+
735
737
Specifies whether an HTTP client should return the full response (:ref: `response_object <response_object >`) or
736
738
an IO object (:ref: `io_object <io_object >`) used for streaming download/upload.
737
739
738
740
:rtype: boolean
739
741
740
742
**See also: ** :ref: `Streaming download <response_streaming_download >`, :ref: `Streaming upload <request_streaming_upload >`
741
743
742
- **Since: ** :doc: `2.11.0 </release/2.11.0 >`
743
-
744
744
.. _request_options-headers :
745
745
746
746
.. data :: headers
@@ -753,6 +753,8 @@ request_options
753
753
754
754
.. data :: params
755
755
756
+ **Since: ** :doc: `2.11.0 </release/2.11.0 >`
757
+
756
758
A table of parameters passed to a request.
757
759
The behavior of this option depends on the request type, for example:
758
760
@@ -761,8 +763,6 @@ request_options
761
763
762
764
:rtype: table
763
765
764
- **Since: ** :doc: `2.11.0 </release/2.11.0 >`
765
-
766
766
.. _request_options-keepalive_idle :
767
767
768
768
.. data :: keepalive_idle
@@ -1077,15 +1077,15 @@ response_object
1077
1077
1078
1078
.. function :: decode()
1079
1079
1080
+ **Since: ** :doc: `2.11.0 </release/2.11.0 >`
1081
+
1080
1082
Decode the response body to a Lua object based on the content type.
1081
1083
1082
1084
:return: a decoded body
1083
1085
:rtype: table
1084
1086
1085
1087
**See also: ** :ref: `Deserialization <response_deserialization >`
1086
1088
1087
- **Since: ** :doc: `2.11.0 </release/2.11.0 >`
1088
-
1089
1089
1090
1090
1091
1091
@@ -1096,11 +1096,11 @@ io_object
1096
1096
1097
1097
.. class :: io_object
1098
1098
1099
+ **Since: ** :doc: `2.11.0 </release/2.11.0 >`
1100
+
1099
1101
An IO object used to read or write data in chunks.
1100
1102
To get an IO object instead of the full response (:ref: `response_object <response_object >`), you need to set the :ref: `chunked <request_options-chunked >` request option to ``true ``.
1101
1103
1102
- **Since: ** :doc: `2.11.0 </release/2.11.0 >`
1103
-
1104
1104
.. _io_object-read :
1105
1105
1106
1106
.. function :: read(chunk[, timeout])
0 commit comments