Update README

This commit is contained in:
2025-07-20 20:46:30 +02:00
parent 8010e0ec1b
commit 01bf34b58d
+2 -6
View File
@@ -44,15 +44,11 @@ int main(void)
HTTP_Request *req;
HTTP_ResponseHandle res;
http_server_wait(server, &res, &res);
printf("requested path [%.*s]\n",
HTTP_UNPACK(req->url.path));
http_server_wait(server, &req, &res);
http_response_status(res, 200);
http_response_header(res, "Content-Type: text/plain");
http_response_body(res, HTTP_STR("Hello"));
http_response_body(res, HTTP_STR(", world!"));
http_response_body(res, HTTP_STR("Hello, world!"));
http_response_done(res);
}