@@ -376,7 +376,7 @@ class _http_server_context
376
376
// / <summary>
377
377
// / Internal representation of an HTTP response.
378
378
// / </summary>
379
- class _http_response : public http ::details::http_msg_base
379
+ class _http_response final : public http::details::http_msg_base
380
380
{
381
381
public:
382
382
_http_response () : m_status_code((std::numeric_limits<uint16_t >::max)()) { }
@@ -488,7 +488,7 @@ class http_response
488
488
// / Extracts the body of the response message as a string value, checking that the content type is a MIME text type.
489
489
// / A body can only be extracted once because in some cases an optimization is made where the data is 'moved' out.
490
490
// / </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>
492
492
// / <returns>String containing body of the message.</returns>
493
493
pplx::task<utility::string_t > extract_string (bool ignore_content_type = false ) const
494
494
{
@@ -500,7 +500,7 @@ class http_response
500
500
// / Extracts the body of the response message as a UTF-8 string value, checking that the content type is a MIME text type.
501
501
// / A body can only be extracted once because in some cases an optimization is made where the data is 'moved' out.
502
502
// / </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>
504
504
// / <returns>String containing body of the message.</returns>
505
505
pplx::task<utf8string> extract_utf8string (bool ignore_content_type = false ) const
506
506
{
@@ -512,7 +512,7 @@ class http_response
512
512
// / Extracts the body of the response message as a UTF-16 string value, checking that the content type is a MIME text type.
513
513
// / A body can only be extracted once because in some cases an optimization is made where the data is 'moved' out.
514
514
// / </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>
516
516
// / <returns>String containing body of the message.</returns>
517
517
pplx::task<utf16string> extract_utf16string (bool ignore_content_type = false ) const
518
518
{
@@ -524,7 +524,7 @@ class http_response
524
524
// / Extracts the body of the response message into a json value, checking that the content type is application/json.
525
525
// / A body can only be extracted once because in some cases an optimization is made where the data is 'moved' out.
526
526
// / </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>
528
528
// / <returns>JSON value from the body of this message.</returns>
529
529
pplx::task<json::value> extract_json (bool ignore_content_type = false ) const
530
530
{
@@ -707,7 +707,7 @@ namespace details {
707
707
// / <summary>
708
708
// / Internal representation of an HTTP request message.
709
709
// / </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>
711
711
{
712
712
public:
713
713
0 commit comments