Skip to content

Commit 1338fb4

Browse files
committed
Fixed documentation issue #116.
1 parent b9a9262 commit 1338fb4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libs/network/doc/reference/http_client.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,11 +233,11 @@ and that there is an appropriately constructed response object named
233233
the ``callback`` parameter. The signature of ``callback`` should be the
234234
following: ``void(iterator_range<char const *> const &,
235235
boost::system::error_code const &)``.
236-
``response_ = client_.post(request_, content_type, body)``
236+
``response_ = client_.post(request_, body, content_type)``
237237
The body and content_type parameters are of type
238238
``boost::network::string<Tag>::type`` where ``Tag`` is the HTTP Client's
239239
``Tag``. This uses the request object's other headers.
240-
``response_ = client_.post(request_, content_type, body, _body_handler=callback)``
240+
``response_ = client_.post(request_, body, content_type, _body_handler=callback)``
241241
The body and content_type parameters are of type
242242
``boost::network::string<Tag>::type`` where ``Tag`` is the HTTP Client's
243243
``Tag``. This uses the request object's other headers. Have the response
@@ -263,11 +263,11 @@ and that there is an appropriately constructed response object named
263263
the ``callback`` parameter. The signature of ``callback`` should be the
264264
following: ``void(iterator_range<char const *> const &,
265265
boost::system::error_code const &)``.
266-
``response_ = client_.put(request_, content_type, body)``
266+
``response_ = client_.put(request_, body, content_type)``
267267
The body and content_type parameters are of type
268268
``boost::network::string<Tag>::type`` where ``Tag`` is the HTTP Client's
269269
``Tag``. This uses the request object's other headers.
270-
``response_ = client_.put(request_, content_type, body, _body_handler=callback)``
270+
``response_ = client_.put(request_, body, content_type, _body_handler=callback)``
271271
The body and content_type parameters are of type
272272
``boost::network::string<Tag>::type`` where ``Tag`` is the HTTP Client's
273273
``Tag``. This uses the request object's other headers. Have the response

0 commit comments

Comments
 (0)