mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 01:08:27 +00:00
Refactoring.
This commit is contained in:
parent
f91cc98b89
commit
aa75fbb5f9
7 changed files with 100 additions and 79 deletions
|
@ -13,7 +13,7 @@ int main(void)
|
|||
Server svr("localhost", 1234);
|
||||
|
||||
svr.get("/hi", [](Connection& c) {
|
||||
c.response.set_content("Hello World!");
|
||||
c.response.set_content("Hello World!", "text/plain");
|
||||
});
|
||||
|
||||
svr.run();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue