@@ -15,7 +15,7 @@ with the HTTP Response objects.
15
15
Response Concept
16
16
----------------
17
17
18
- A type models the Response Concept if it models the `Message Concept`_ and also
18
+ A type models the Response Concept if it models the `Message Concept`_ and also
19
19
supports the following constructs.
20
20
21
21
**Legend**
@@ -80,8 +80,8 @@ supports the following constructs.
80
80
Directives
81
81
----------
82
82
83
- This section details the provided directives that are provided by
84
- :mod:`cpp-netlib`. The section was written to assume that an appropriately
83
+ This section details the provided directives that are provided by
84
+ :mod:`cpp-netlib`. The section was written to assume that an appropriately
85
85
constructed response instance is either of the following:
86
86
87
87
.. code-block:: c++
@@ -109,13 +109,13 @@ Directives are meant to be used in the following manner:
109
109
110
110
response << directive(...);
111
111
112
- .. warning:: There are four versions of directives, those that are applicable
112
+ .. warning:: There are four versions of directives, those that are applicable
113
113
to messages that support narrow strings (``std::string``), those that are
114
114
applicable to messages that support wide strings (``std::wstring``), those
115
115
that are applicable to messages that support future-wrapped narrow and wide
116
116
strings (``boost::shared_future<std::string>`` and
117
- ``boost::shared_future<std::wstring>``).
118
-
117
+ ``boost::shared_future<std::wstring>``).
118
+
119
119
The :mod:`cpp-netlib` implementation still does not convert wide strings into
120
120
UTF-8 encoded narrow strings. This will be implemented in subsequent
121
121
library releases.
@@ -124,25 +124,25 @@ Directives are meant to be used in the following manner:
124
124
do not implement things correctly.
125
125
126
126
*unspecified* ``source(std::string const & source_)``
127
- Create a source directive with a ``std::string`` as a parameter, to be set
127
+ Create a source directive with a ``std::string`` as a parameter, to be set
128
128
as the source of the response.
129
129
*unspecified* ``source(std::wstring const & source_)``
130
130
Create a source directive with a ``std::wstring`` as a parameter, to be set
131
131
as the source of the response.
132
132
*unspecified* ``source(boost::shared_future<std::string> const & source_)``
133
- Create a source directive with a ``boost::shared_future<std::string>`` as a parameter, to be set
133
+ Create a source directive with a ``boost::shared_future<std::string>`` as a parameter, to be set
134
134
as the source of the response.
135
135
*unspecified* ``source(boost::shared_future<std::wstring> const & source_)``
136
136
Create a source directive with a ``boost::shared_future<std::wstring>`` as a parameter, to be set
137
137
as the source of the response.
138
138
*unspecified* ``destination(std::string const & source_)``
139
- Create a destination directive with a ``std::string`` as a parameter, to be
139
+ Create a destination directive with a ``std::string`` as a parameter, to be
140
140
set as the destination of the response.
141
141
*unspecified* ``destination(std::wstring const & source_)``
142
142
Create a destination directive with a ``std::wstring`` as a parameter, to be
143
143
set as the destination of the response.
144
144
*unspecified* ``destination(boost::shared_future<std::string> const & destination_)``
145
- Create a destination directive with a ``boost::shared_future<std::string>`` as a parameter, to be set
145
+ Create a destination directive with a ``boost::shared_future<std::string>`` as a parameter, to be set
146
146
as the destination of the response.
147
147
*unspecified* ``destination(boost::shared_future<std::wstring> const & destination_)``
148
148
Create a destination directive with a ``boost::shared_future<std::wstring>`` as a parameter, to be set
@@ -225,7 +225,7 @@ Directives are meant to be used in the following manner:
225
225
Modifiers
226
226
---------
227
227
228
- This section details the provided modifiers that are provided by
228
+ This section details the provided modifiers that are provided by
229
229
:mod:`cpp-netlib`.
230
230
231
231
``template <class Tag> inline void source(basic_response<Tag> & response, typename string<Tag>::type const & source_)``
@@ -248,10 +248,10 @@ This section details the provided modifiers that are provided by
248
248
Removes a header from the given ``response``. The type of the ``name``
249
249
parameter is dependent on the ``Tag`` specialization of ``basic_response``.
250
250
``template <class Tag> inline void headers(basic_response<Tag> & response, typename headers_container<basic_response<Tag> >::type const & headers_)``
251
- Sets the whole headers contained in ``response`` as the given parameter
251
+ Sets the whole headers contained in ``response`` as the given parameter
252
252
``headers_``.
253
253
``template <class Tag> inline void headers(basic_response<Tag> & response, boost::shared_future<typename headers_container<basic_response<Tag> >::type> const & headers_)``
254
- Sets the whole headers contained in ``response`` as the given parameter
254
+ Sets the whole headers contained in ``response`` as the given parameter
255
255
``headers_``.
256
256
``template <class Tag> inline void clear_headers(basic_response<Tag> & response)``
257
257
Removes all headers from the given ``response``.
@@ -281,7 +281,7 @@ section assumes that the following using namespace directives are in
281
281
effect:
282
282
283
283
.. code-block:: c++
284
-
284
+
285
285
using namespace boost::network;
286
286
using namespace boost::network::http;
287
287
@@ -302,7 +302,7 @@ effect:
302
302
Returns a wrapper convertible to ``typename string<Tag>::type`` that
303
303
provides the version of the given response.
304
304
``template <class Tag>`` *unspecified* ``status(basic_response<Tag> const & response)``
305
- Returns a wrapper convertible to ``typename string<Tag>::type `` that
305
+ Returns a wrapper convertible to ``typename boost::uint16_t `` that
306
306
provides the status of the given response.
307
307
``template <class Tag>`` *unspecified* ``status_message(basic_response<Tag> const & response)``
308
308
Returns a wrapper convertible to ``typename string<Tag>::type`` that
0 commit comments