Skip to content

Commit baa8c9b

Browse files
ras0219ras0219-msft
authored andcommitted
Add final for internal types. Fix docs.
1 parent 98320fe commit baa8c9b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Release/include/cpprest/http_msg.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ class _http_server_context
376376
/// <summary>
377377
/// Internal representation of an HTTP response.
378378
/// </summary>
379-
class _http_response : public http::details::http_msg_base
379+
class _http_response final : public http::details::http_msg_base
380380
{
381381
public:
382382
_http_response() : m_status_code((std::numeric_limits<uint16_t>::max)()) { }
@@ -488,7 +488,7 @@ class http_response
488488
/// Extracts the body of the response message as a string value, checking that the content type is a MIME text type.
489489
/// A body can only be extracted once because in some cases an optimization is made where the data is 'moved' out.
490490
/// </summary>
491-
/// <param name="ignore_content_type">If true, ignores the Content-Type header and assumes UTF-8.</param>
491+
/// <param name="ignore_content_type">If true, ignores the Content-Type header and assumes text.</param>
492492
/// <returns>String containing body of the message.</returns>
493493
pplx::task<utility::string_t> extract_string(bool ignore_content_type = false) const
494494
{
@@ -500,7 +500,7 @@ class http_response
500500
/// Extracts the body of the response message as a UTF-8 string value, checking that the content type is a MIME text type.
501501
/// A body can only be extracted once because in some cases an optimization is made where the data is 'moved' out.
502502
/// </summary>
503-
/// <param name="ignore_content_type">If true, ignores the Content-Type header and assumes UTF-8.</param>
503+
/// <param name="ignore_content_type">If true, ignores the Content-Type header and assumes text.</param>
504504
/// <returns>String containing body of the message.</returns>
505505
pplx::task<utf8string> extract_utf8string(bool ignore_content_type = false) const
506506
{
@@ -512,7 +512,7 @@ class http_response
512512
/// Extracts the body of the response message as a UTF-16 string value, checking that the content type is a MIME text type.
513513
/// A body can only be extracted once because in some cases an optimization is made where the data is 'moved' out.
514514
/// </summary>
515-
/// <param name="ignore_content_type">If true, ignores the Content-Type header and assumes UTF-16.</param>
515+
/// <param name="ignore_content_type">If true, ignores the Content-Type header and assumes text.</param>
516516
/// <returns>String containing body of the message.</returns>
517517
pplx::task<utf16string> extract_utf16string(bool ignore_content_type = false) const
518518
{
@@ -524,7 +524,7 @@ class http_response
524524
/// Extracts the body of the response message into a json value, checking that the content type is application/json.
525525
/// A body can only be extracted once because in some cases an optimization is made where the data is 'moved' out.
526526
/// </summary>
527-
/// <param name="ignore_content_type">If true, ignores the Content-Type header and assumes UTF-8.</param>
527+
/// <param name="ignore_content_type">If true, ignores the Content-Type header and assumes json.</param>
528528
/// <returns>JSON value from the body of this message.</returns>
529529
pplx::task<json::value> extract_json(bool ignore_content_type = false) const
530530
{
@@ -707,7 +707,7 @@ namespace details {
707707
/// <summary>
708708
/// Internal representation of an HTTP request message.
709709
/// </summary>
710-
class _http_request : public http::details::http_msg_base, public std::enable_shared_from_this<_http_request>
710+
class _http_request final : public http::details::http_msg_base, public std::enable_shared_from_this<_http_request>
711711
{
712712
public:
713713

0 commit comments

Comments
 (0)