Browse Source

move version of SetContent

aykeron 1 year ago
parent
commit
1d5fc29e22
1 changed files with 6 additions and 0 deletions
  1. 6 0
      library/cpp/http/server/response.h

+ 6 - 0
library/cpp/http/server/response.h

@@ -62,6 +62,12 @@ public:
         return *this;
         return *this;
     }
     }
 
 
+    THttpResponse& SetContent(TString&& content) {
+        Content = std::move(content);
+
+        return *this;
+    }
+
     TString GetContent() const {
     TString GetContent() const {
         return Content;
         return Content;
     }
     }