File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -1007,8 +1007,7 @@ class connection
10071007 * callbacks.
10081008 *
10091009 * @param code Code to set
1010- * @param msg Message to set
1011- * @see websocketpp::http::response::set_status
1010+ * @see websocketpp::http::parser::response::set_status
10121011 */
10131012 void set_status (http::status_code::value code);
10141013
@@ -1023,7 +1022,7 @@ class connection
10231022 *
10241023 * @param code Code to set
10251024 * @param msg Message to set
1026- * @see websocketpp::http::response::set_status
1025+ * @see websocketpp::http::parser:: response::set_status
10271026 */
10281027 void set_status (http::status_code::value code, std::string const & msg);
10291028
@@ -1038,10 +1037,13 @@ class connection
10381037 * callbacks.
10391038 *
10401039 * @param value String data to include as the body content.
1041- * @see websocketpp::http::response::set_body
1040+ * @see websocketpp::http::parser:: response::set_body
10421041 */
10431042 void set_body (std::string const & value);
1044- void set_body ( std::string&& value );
1043+ #ifdef _WEBSOCKETPP_MOVE_SEMANTICS_
1044+ // / @copydoc websocketpp::connection::set_body(std::string const &)
1045+ void set_body (std::string && value);
1046+ #endif // _WEBSOCKETPP_MOVE_SEMANTICS_
10451047
10461048 // / Append a header
10471049 /* *
Original file line number Diff line number Diff line change @@ -575,6 +575,7 @@ void connection<config>::set_body(std::string const & value) {
575575 m_response.set_body (value);
576576}
577577
578+ #ifdef _WEBSOCKETPP_MOVE_SEMANTICS_
578579template <typename config>
579580void connection<config>::set_body( std::string&& value ) {
580581 if (m_internal_state != istate::PROCESS_HTTP_REQUEST) {
@@ -584,6 +585,7 @@ void connection<config>::set_body( std::string&& value ) {
584585
585586 m_response.set_body (std::move (value));
586587}
588+ #endif // _WEBSOCKETPP_MOVE_SEMANTICS_
587589
588590// TODO: EXCEPTION_FREE
589591template <typename config>
You can’t perform that action at this time.
0 commit comments