mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-04-12 03:38:30 +00:00
Renamed Context to Connection. Removed DSL macro.
This commit is contained in:
@@ -55,8 +55,8 @@ TEST(ServerTest, GetMethod)
|
||||
{
|
||||
Server svr("localhost", 1914);
|
||||
|
||||
svr.get("hi", [&](httplib::Context& cxt) {
|
||||
cxt.response.set_content("Hello World!");
|
||||
svr.get("hi", [&](httplib::Connection& c) {
|
||||
c.response.set_content("Hello World!");
|
||||
});
|
||||
|
||||
svr.on_ready([&]() {
|
||||
|
||||
Reference in New Issue
Block a user