mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 01:08:27 +00:00
Renamed Context to Connection. Removed DSL macro.
This commit is contained in:
parent
6897c64c74
commit
ced9c38339
5 changed files with 53 additions and 57 deletions
|
@ -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([&]() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue