refactor: 将 example 路径重构为 examples

This commit is contained in:
2025-09-28 08:49:57 +00:00
parent 4c48febd41
commit ba9cfbbe1f
5 changed files with 2 additions and 3 deletions
+20
View File
@@ -0,0 +1,20 @@
#include <http/http_response.hpp>
#include <string>
#include <iostream>
int main()
{
std::string body = "Hello HTTP!";
auto builder = ouc_server::http::HttpResponse::create();
auto res =
builder.body(body)
.header("Content-Length", std::to_string(body.size()))
.header("Content-Type", "text/plain")
.build();
printf("%s\n", res.to_string().c_str());
return 0;
}