mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 09:18:27 +00:00
Refactoring.
This commit is contained in:
parent
f91cc98b89
commit
aa75fbb5f9
7 changed files with 100 additions and 79 deletions
|
@ -18,7 +18,7 @@ Inspired by [Sinatra](http://www.sinatrarb.com/)
|
|||
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