Skip to content

Commit 430d2b4

Browse files
Move 'since' to the top (#3529)
1 parent 7a20cad commit 430d2b4

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

doc/reference/reference_lua/http.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -696,11 +696,11 @@ client_object
696696

697697
.. data:: decoders
698698

699+
**Since:** :doc:`2.11.0 </release/2.11.0>`
700+
699701
Decoders used to deserialize response data based on the ``Content-Type`` header value.
700702
Learn more from :ref:`Deserialization <response_deserialization>`.
701703

702-
**Since:** :doc:`2.11.0 </release/2.11.0>`
703-
704704
.. _request_options:
705705

706706
request_options
@@ -732,15 +732,15 @@ request_options
732732

733733
.. data:: chunked
734734

735+
**Since:** :doc:`2.11.0 </release/2.11.0>`
736+
735737
Specifies whether an HTTP client should return the full response (:ref:`response_object <response_object>`) or
736738
an IO object (:ref:`io_object <io_object>`) used for streaming download/upload.
737739

738740
:rtype: boolean
739741

740742
**See also:** :ref:`Streaming download <response_streaming_download>`, :ref:`Streaming upload <request_streaming_upload>`
741743

742-
**Since:** :doc:`2.11.0 </release/2.11.0>`
743-
744744
.. _request_options-headers:
745745

746746
.. data:: headers
@@ -753,6 +753,8 @@ request_options
753753

754754
.. data:: params
755755

756+
**Since:** :doc:`2.11.0 </release/2.11.0>`
757+
756758
A table of parameters passed to a request.
757759
The behavior of this option depends on the request type, for example:
758760

@@ -761,8 +763,6 @@ request_options
761763

762764
:rtype: table
763765

764-
**Since:** :doc:`2.11.0 </release/2.11.0>`
765-
766766
.. _request_options-keepalive_idle:
767767

768768
.. data:: keepalive_idle
@@ -1077,15 +1077,15 @@ response_object
10771077

10781078
.. function:: decode()
10791079

1080+
**Since:** :doc:`2.11.0 </release/2.11.0>`
1081+
10801082
Decode the response body to a Lua object based on the content type.
10811083

10821084
:return: a decoded body
10831085
:rtype: table
10841086

10851087
**See also:** :ref:`Deserialization <response_deserialization>`
10861088

1087-
**Since:** :doc:`2.11.0 </release/2.11.0>`
1088-
10891089

10901090

10911091

@@ -1096,11 +1096,11 @@ io_object
10961096

10971097
.. class:: io_object
10981098

1099+
**Since:** :doc:`2.11.0 </release/2.11.0>`
1100+
10991101
An IO object used to read or write data in chunks.
11001102
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``.
11011103

1102-
**Since:** :doc:`2.11.0 </release/2.11.0>`
1103-
11041104
.. _io_object-read:
11051105

11061106
.. function:: read(chunk[, timeout])

0 commit comments

Comments
 (0)