refactor: Use std::move and std::string_view where possible (#7424)

Co-authored-by: Bart <11445373+bthomee@users.noreply.github.com>
This commit is contained in:
Bart
2026-06-09 09:56:32 -04:00
committed by GitHub
parent ee9fbc4e08
commit c9769d1add
35 changed files with 86 additions and 86 deletions

View File

@@ -33,6 +33,7 @@
#include <ostream>
#include <stdexcept>
#include <string>
#include <string_view>
#include <thread>
#include <utility>
#include <vector>
@@ -133,7 +134,8 @@ public:
static void
onRequest(Session& session)
{
session.write(std::string("Hello, world!\n"));
using namespace std::string_view_literals;
session.write("Hello, world!\n"sv);
if (beast::rfc2616::isKeepAlive(session.request()))
{
session.complete();